Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Re: Short routines matter more in OO?

by Juerd (Abbot)
on Oct 15, 2003 at 06:44 UTC ( #299347=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: Re: Re: Short routines matter more in OO?
in thread Short routines matter more in OO?

Therefore code which is lazily loaded by do, require, AUTOLOAD, Apache::Reload etc won't have existed at the right time for the attributes to actually have been properly installed, therefore leading to mysteriously failing code.

Even though A::P does suffer from this, the bug caused by it is not mysterious. When you try to use the Property attribute on an anonymous sub or at some other time at which the symbol argument is not given, it croaks.

I haven't needed to require or do my class modules or to autogenerate functions. Yet.

Thank you for letting me know about this issue. I hope someone will find a workaround soon. When I have the time, I think I should try using Data::Swap and use the referent argument.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

  • Comment on Re: Re: Re: Re: Re: Re: Re: Re: Short routines matter more in OO?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299347]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-09-27 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?