Re: OO handlers

2002-11-07 Thread Michael Schout
Geoffrey Young wrote: interesting. the last time I tried was with bleedperl before 5.8 was released - I know it worked then because I was writing a patch for mod_perl core based on it. this thread has most of the dialogue: Hrm. Well, not sure how the :method attribute is implemented, but

OO handlers

2002-11-06 Thread Richard Clarke
List, Tired of having 10 modules all with near identical handler methods I decided to put the handler method into a superclass and be done with maintaining the same code 10 times. I first tried this a couple of weeks ago and it failed to work, because at the time I couldn't find the reference

Re: OO handlers

2002-11-06 Thread Richard Clarke
3:55 PM Subject: OO handlers List, Tired of having 10 modules all with near identical handler methods I decided to put the handler method into a superclass and be done with maintaining the same code 10 times. I first tried this a couple of weeks ago and it failed to work, because

Re: OO handlers

2002-11-06 Thread Michael Schout
Geoffrey Young wrote: keep in mind that neither book mentions the use of subroutine attributes, which is allowed in 1.3 but the only way in 2.0 sub handler : method { ... } I am 99% sure that Attribute handlers wont work in 1.3 because Attribute::Handlers use CHECK{} blocks to set up the

Re: OO handlers

2002-11-06 Thread Geoffrey Young
Michael Schout wrote: Geoffrey Young wrote: keep in mind that neither book mentions the use of subroutine attributes, which is allowed in 1.3 but the only way in 2.0 sub handler : method { ... } I am 99% sure that Attribute handlers wont work in 1.3 because Attribute::Handlers use

Re: OO handlers

2002-11-06 Thread Richard Clarke
, November 06, 2002 3:55 PM Subject: OO handlers List, Tired of having 10 modules all with near identical handler methods I decided to put the handler method into a superclass and be done with maintaining the same code 10 times. I first tried this a couple of weeks ago and it failed

Re: OO handlers

2002-11-06 Thread James G Smith
Richard Clarke [EMAIL PROTECTED] wrote: Now I feel stupid. $sub-handler was supposed to be $sub-handler. That's what you get for being impatient. or perhaps `sub { $sub - handler(@_) }' -- if quoting works, great, but I would fear that $sub-handler would stringify before push_handlers got

Re: OO handlers

2002-11-06 Thread Geoffrey Young
Richard Clarke wrote: List, Tired of having 10 modules all with near identical handler methods I decided to put the handler method into a superclass and be done with maintaining the same code 10 times. I first tried this a couple of weeks ago and it failed to work, because at the time I