On 7/21/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> As opposed to the bug reports or puzzled questions when someone
> says `$foo{ __PACKAGE__ } = $bar` and wonders why it didn't do
> what they expected.

I wasn't aware of this one. Nasty.

This makes me feel I'm really heading towards the right way when I try
to avoid having explicit __PACKAGE__ lying around my code. Besides
making the code look better. ;-)

It's a weird thing no one has came up with a better way to handle this
__PACKAGE__ thing before. Even a constant named PACKAGE (or CLASS or
SELF) would probably be better.

-Nilson Santos F. Jr.

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to