develooper Front page | perl.perl6.language | Postings from August 2001

Re: properties, revisited

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
August 2, 2001 20:05
Subject:
Re: properties, revisited
Message ID:
5.1.0.14.0.20010802225933.02204120@24.8.96.48
At 07:28 PM 8/2/2001 -0700, Edward Peschko wrote:
> > Now that you've got me thinking about it, that brings up some interesting
> > questions.
> >
> > $bar = $foo is my_prop = 0 is some_prop;
> > ($bar = $foo is my_prop) = 0 is some_prop;
> > $bar = ($foo is my_prop) = 0 is some_prop;
>
>This is why I think that variable properties and value properties should 
>be the same thing - value properties.

They can't be, though--conceptually they are different things. Variables 
are const or not, while values aren't, for example. Doesn't mean that 
there'll be that many different variable properties, since I don't think 
there are all that many that are appropriate. (Type and max size, perhaps, 
along with a few others)

The syntax for variable and value properties are going to be different, I 
think, I just can't remember what it's going to be. (I think the colon's 
involved, but isn't it always?)



					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