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

Re: 'is' and action at a distance

Thread Previous | Thread Next
From:
Uri Guttman
Date:
May 20, 2001 15:37
Subject:
Re: 'is' and action at a distance
Message ID:
200105202237.SAA18538@home.sysarch.com.
>>>>> "LW" == Larry Wall <larry@wall.org> writes:

  LW> I think it would be better if we stilled two curds with one bone.  We
  LW> can have a more obscure name, plus differentiate the prop tables at the
  LW> same time.  So how 'bout we have two methods, such as:

  LW>     $foo.variable_is
  LW>     $foo.value_is

hmm, in catching up with mail i saw damian's long property exegesis and
i replied with a suggestion asking to split the value/permanent (or as
above value/variable) props
and then i see this. good to know i am on the right wavelength.

but can a code ref a set of variable properties? that is why i am using
the term permanent (or set at compile time and unmutable).

another point: how can you delete properties? obviously this can only be
done with value properties. an accessor method has no clean way of
separating plain access $foo.bar() from some way to assign a null list
to it. you can assign an explict undef but that is not the same as
deletion.

so a delete_value_prop func/method should be supported in some fashion.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info:     http://www.sysarch.com/perl/OOP_class.html

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