object property syntax

2003-09-25 Thread Todd W.
I have a question/request concerning perl6 object properties. I've done some work with .NET and They have come up with a really slick way to handle object properties. A typical property definition in VB.NET looks like: Public Property description() As String Get return aString End Get

object property syntax

2003-09-25 Thread Todd R Wade
I have a question/request concerning perl6 object properties. I've done some work with .NET and They have come up with a really slick way to handle object properties. A typical property definition in VB.NET looks like: Public Property propertyName() As String Get return aString End Get

Re: object property syntax

2003-09-25 Thread Luke Palmer
Todd W. writes: > I have a question/request concerning perl6 object properties. Rather, attributes. Properties are out-of-band data attached to a particular object. > I've done some work with .NET and They have come up with a really slick way > to handle object properties. > > A typical propert

Re: object property syntax [OT]

2003-09-25 Thread Matthijs van Duin
On Wed, Sep 24, 2003 at 07:53:39PM -0400, Todd W. wrote: I posted a question to CLPM on how to do this with perl5 and we decided to use an 'lvalue' attribute on the subroutine and then make the returned lvalue in the sub a tied variable to intercept read/writes: http://groups.google.com/groups?t

Re: object property syntax

2003-09-25 Thread Dan Sugalski
On Wed, 24 Sep 2003, Todd W. wrote: > I have a question/request concerning perl6 object properties. > > I've done some work with .NET and They have come up with a really slick way > to handle object properties. > > A typical property definition in VB.NET looks like: > > Public Property descript

Re: object property syntax

2003-09-25 Thread Dan Sugalski
On Thu, 25 Sep 2003, Luke Palmer wrote: > Todd W. writes: > > I have a question/request concerning perl6 object properties. > > Rather, attributes. Properties are out-of-band data attached to a > particular object. FWIW, "attribute" and "property" are two words that have a meaning that shifts

Re: Macro arguments themselves

2003-09-25 Thread Larry Wall
: >[EMAIL PROTECTED] (Luke Palmer) writes: : > : > : >>I would hope the former. However, what about this compile-time : >>integral power macro[1]? : >> : >> macro power ($x, $p) { : >> if $p > 0 { : >> { $x * power($x, $p-1) } : >> } : >> else { : >> { 1 } :

Re: Autovivification (was Re: E6: assume nothing)

2003-09-25 Thread Larry Wall
On Mon, Sep 08, 2003 at 11:18:12AM +0200, Paul Johnson wrote: : By the way, I trust this will be addressed (if it hasn't been already): : : perl5 -le 'print "gah!" if exists $a{b}{c}; print "phooey!" if exists $a{b}' : : perlfunc says: : : This surprising autovivification in what does not at f