Re: Properties -- distributive, predeclared, post-applied....??

2003-12-05 Thread Jonathan Scott Duff
On Thu, Dec 04, 2003 at 05:57:52PM -0700, Luke Palmer wrote: Hodges, Paul writes: I'd *like* to be able to predeclare a trait or property to be distributed across any values placed in this array, but only this array. For example, it would be nice if I could have the default aspects of false

Re: Properties -- distributive, predeclared, post-applied....??

2003-12-05 Thread Luke Palmer
Jonathan Scott Duff writes: On Thu, Dec 04, 2003 at 05:57:52PM -0700, Luke Palmer wrote: Hodges, Paul writes: I'd *like* to be able to predeclare a trait or property to be distributed across any values placed in this array, but only this array. For example, it would be nice if I could

RE: Properties -- distributive, predeclared, post-applied....??

2003-12-04 Thread Hodges, Paul
How about use Baz; # assume object type my property foo; my @bar of Baz is false but foo; # maybe not what you meant? If you apply a trait like false to an array, I expect it to apply to the array instance object itself and not the content, so that push @bar, Baz.new(); if @bar{

Re: Properties -- distributive, predeclared, post-applied....??

2003-12-04 Thread Luke Palmer
Hodges, Paul writes: How about use Baz; # assume object type my property foo; my @bar of Baz is false but foo; # maybe not what you meant? Definitely not what you meant. Fortunately, the compiler will teach you a thing or two about it: Cfalse is not a trait. But indeed foo would

Re: Properties -- distributive, predeclared, post-applied....??

2003-12-04 Thread Paul Hodges
--- Luke Palmer [EMAIL PROTECTED] wrote: Hodges, Paul writes: How about use Baz; # assume object type my property foo; my @bar of Baz is false but foo; # maybe not what you meant? Definitely not what you meant. Fortunately, the compiler will teach you a thing or two about

Re: Properties -- distributive, predeclared, post-applied....??

2003-12-04 Thread Luke Palmer
Paul Hodges writes: Luke Palmer: Something likely more like: my role property_wrap[Property [EMAIL PROTECTED] { method STORE($newval) { SUPER::STORE($newval but [EMAIL PROTECTED]) } } @bar but= property_wrap[false, foo]; ...square brackets? ...roles can have