Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Subclassing and CGI::Prototype

by tlm (Prior)
on May 19, 2006 at 18:54 UTC ( #550562=note: print w/replies, xml ) Need Help??

in reply to Re: Subclassing and CGI::Prototype
in thread Subclassing and CGI::Prototype


I've thought about fixing that by forcing the CGI slot to always be located up in CGI::Prototype, but I have to think through that carefully to make sure that doesn't break some other assumption.

Hey, that's what unit tests are for! :)

Anyway, in the meantime, I've added a few notes to the CGI::Prototype page at AnnoCPAN.

the lowliest monk

Replies are listed 'Best First'.
Re^3: Subclassing and CGI::Prototype
by merlyn (Sage) on May 19, 2006 at 22:26 UTC
    Try this patch. Change $self->reflect->addSlot to __PACKAGE__->reflect->addSlot in CGI/ in the initialize_CGI subroutine. I think that'll do it right. But I'm trying to think of how to have subclasses also be able to select where the CGI slot should be.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://550562]
[stevieb]: I have fixed a boatload of issues across several of my distributions, including a couple that have been nagging for a very long time and were exceptionally difficult to solve. Saving $ before we move, so thought I'd have a code session...
[stevieb]: ...session weekend. Went far better than I could have imagined. Even got a bunch of stuff soldered for another one of my electronics projects on the go, and am working on a fix for a MetaCPAN::Client issue I found
[shmem]: the smaller your boat is, the smaller is the load...
shmem is going to look for problems with C++. Urgh.
choroba has worked on the Pull Request Challenge
[stevieb]: shmem I had to do that yesterday and earlier today (C++ issues). It was only fun after I figured it all out.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-06-25 22:26 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (571 votes). Check out past polls.