P is for Practical | |
PerlMonks |
Re: Re: Fun with Typed Objects 1by John M. Dlugosz (Monsignor) |
on Apr 03, 2003 at 16:08 UTC ( [id://247799]=note: print w/replies, xml ) | Need Help?? |
I like the way that is going. I thought about class methods after reading Aristotle's post. I think what you describe is very well defined, too: the .= notation means to use the declared type of a variable and call a class method. To prevent surprises in a more general use, perhaps .= should use the actual object if it exists, but allow undef value to pull the declared type.
In Section
Meditations
|
|