Front page | perl.perl6.language |
Postings from May 2001
Re: properties
Thread Previous
|
Thread Next
From:
Dan Sugalski
Date:
May 19, 2001 11:54
Subject:
Re: properties
Message ID:
5.1.0.14.0.20010519143838.021cf728@24.8.96.48
At 11:47 AM 5/19/2001 -0700, Larry Wall wrote:
>Edward Peschko writes:
>: Why can't variable properties and value properties be the same thing?
>
>Because a variable is a container, and has properties appropriate to
>a container, and a value is a containee, and has properties appropriate
>to a containee. (Plus, any given value could be in multiple variables
>simultaneously.)
>
>It's the same basic distinction between tying and overloading. Tying
>is something that happens on a container object, and overloading is
>something that happens on a value object.
So what happens when you assign an overloaded value to a tied variable, or
vice versa? Which wins?
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