in reply to Working around non-polymorphic __DATA__ sections
Umm, why? If it's called as an object method, you should probably be handling everything internally as an object, not a class. If, by chance, you really do need to handle things as a class method for a particular section of code, then you can always call ref when you need to, but you should always keep the orginal object around if that's what you were passed.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
:(){ :|:&};:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Working around non-polymorphic __DATA__ sections
by princepawn (Parson) on Oct 20, 2003 at 15:52 UTC |