Mark Stosberg wrote:
>>You can never do
>> $self->add_callback( init => sub {...})
>>where $self is an object and have that sub get executed. It will only
>>get executed if $self is a class name.
>
>
> I see what you are saying. The callback will have to be registered by
> a class method to be run at init time.
>
> But is that a problem if the code that is eventually run is an object
> method?
I don't know. I didn't say it was a problem. I was just asking if anyone
else thought it was a problem :)
> [ thinks. birds chirp. ]
>
> Is the problem that in a persistent environment you would possibly add
> run modes to all modules using some class, inside of adding methods
> private to an object?
>
> I sense our conversation has a circular and about is about to reboot.
You mean $you don't have a built-in method for detecting circular
conversations so that you can abort with an error without doing a reboot :)
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]