develooper Front page | perl.perl6.language | Postings from April 2003

Re: Properties & Methods

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
April 8, 2003 12:10
Subject:
Re: Properties & Methods
Message ID:
a0521060dbab8cee5bfee@[63.120.19.221]
At 11:26 AM -0700 4/8/03, Larry Wall wrote:
>On Tue, Apr 08, 2003 at 11:01:24AM -0400, Dan Sugalski wrote:
>: At 12:12 AM -0600 4/8/03, Luke Palmer wrote:
>: >In this case it would be great to have lexically and dynamically
>: >scoped properties.  So:
>:
>: Gah! No! Nononononononono! Have I mentioned I'd rather not?
>:
>: Lexically and dynamically scoped *methods* I can manage, as that's
>: just a layered namespace issue, and that's no big deal. Lexically and
>: dynamically scoped *properties*, though... Yowtch.
>
>But what if you just think of the property as a method on a singleton class?

Then I have to completely rip out the current property system, 
property introspection becomes much harder, and the property hash you 
mandated doesn't work well any more.

Other than that I can do it... :)
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About