Re: MethodMaker techniques in Perl 6

2004-04-26 Thread Jonathan Scott Duff
On Sun, Apr 25, 2004 at 08:16:30PM -0700, Dave Whipp wrote: > Abhijit A. Mahabal wrote: > > >>> *{"Foo::name1"} = -> $a { $a->{name1} }; > >> > >>If I read A12 correctly, this could be written as: > >> > >> &Foo::$name1 := -> $a {$a.name1}; > >> > > > > > >Could be; that sounds somewhat right, but

Re: MethodMaker techniques in Perl 6

2004-04-25 Thread Dave Whipp
Abhijit A. Mahabal wrote: *{"Foo::name1"} = -> $a { $a->{name1} }; If I read A12 correctly, this could be written as: &Foo::$name1 := -> $a {$a.name1}; Could be; that sounds somewhat right, but could you point out where in A12 because a search for := revelaed nothing relevant to me. Sorry, t

Re: MethodMaker techniques in Perl 6

2004-04-25 Thread Abhijit A. Mahabal
On Sun, 25 Apr 2004, Dave Whipp wrote: > > "Abhijit A. Mahabal" <[EMAIL PROTECTED]> wrote: > > Symbol tables and typeglobs and such belong to A10... and the * has been > > stolen... so I'll just speculate in pseudocode. > > Blocks-are-subroutines makes life easier, and in pseudocode that can be >

Re: MethodMaker techniques in Perl 6

2004-04-25 Thread Dave Whipp
"Abhijit A. Mahabal" <[EMAIL PROTECTED]> wrote: > Symbol tables and typeglobs and such belong to A10... and the * has been > stolen... so I'll just speculate in pseudocode. > Blocks-are-subroutines makes life easier, and in pseudocode that can be > just: > *{"Foo::name1"} = -> $a { $a->{name1} }

Re: MethodMaker techniques in Perl 6

2004-04-25 Thread Abhijit A. Mahabal
On Sat, 24 Apr 2004, John Siracusa wrote: > Based on the "default accessors and encapsulation" thread, it seems like a > Perl 6 equivalent of Class::MethodMaker will be still be useful in our (or > at least "my") Brave New World. I've been pondering the best way to create > such a beast in Perl

MethodMaker techniques in Perl 6

2004-04-25 Thread John Siracusa
Based on the "default accessors and encapsulation" thread, it seems like a Perl 6 equivalent of Class::MethodMaker will be still be useful in our (or at least "my") Brave New World. I've been pondering the best way to create such a beast in Perl 6. The most common two Perl 5 techniques are: 1. U