On 2005-07-05, Michael Peters <[EMAIL PROTECTED]> wrote:
>> I think you are wrong. Looking at the source code of new(),
>> 
>> We can see the object creation:
>> 
>>     # Create our object!
>>     my $self = {};
>>     bless($self, $class);
>
> Right, but how do you register a callback for init on this newly blessed
> object? You won't see it until after the init hook is already called.

Maybe /I'm wrong here/ but can't you do this 'using' a plugin that
registers a callback at init as part of the import process? 

It doesn't matter that the object doesn't exist at import time because
you aren't doing anything with it. You are just providing a pointer to a
code reference, that happens to be an object method call. 

    Mark


---------------------------------------------------------------------
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]

Reply via email to