RE: Properties, deleting them, and dump

2001-05-22 Thread Carl Johan Berglund
At 09.46 -0500 01-05-22, Garrett Goebel wrote: >I would rather the bike shed be painted: > >@var_prop = keys $foo.is; >@val_prop = keys $foo.value.is; The btw/prop/value_is/variable_is/is method(s) will return a reference to the properties hash, so Perl 6 will certainly support getting the keys

RE: Properties, deleting them, and dump

2001-05-22 Thread Garrett Goebel
From: Carl Johan Berglund [mailto:[EMAIL PROTECTED]] > > Other than that, I think I like Larry's idea to have one variable_is > and one value_is method. I would also very much have Data::Dumper > built in as 'dump', so that I could say I would rather the bike shed be painted: @var_prop = keys

Properties, deleting them, and dump

2001-05-22 Thread Carl Johan Berglund
At 08.53 +0100 01-05-22, Graham Barr wrote: >With the current approach I can see most code accessing properties >with $var.prop{name} >because they want to make sure they get the property and not a method, whereas >it would be shorter, in the common case, to have something like $var'name I woul