On Thu, Apr 11, 2002 at 12:01:58PM +1000, Damian Conway wrote:
> Allison Randal wrote:
> 
> > Hmmmm... this being the case, is there any reason we should ever need to
> > name the invocant explicitly?
> 
> Yes. To make it read-writable. 
 
Curses! Foiled again! :)

> Perl makes that much easier than most other languages, because you can pass
> the invocant by (writable) reference, so you don't need to pass a separate
> $parent pointer:

Devil's advocate role aside, that is a very cool feature. Another thing
you would lose is the ability to rename the parameter if you wanted (you
could use assignment or binding, but it would be infinitely ugly).

Allison

Reply via email to