Re: A Perl 6 class question

2002-08-18 Thread Damian Conway
Trey Harris asked: Another one... class Foo is Bar; method a { setup(); } 1; # EOF (Is the 1 still required? No. I think I heard Damian say it was going away.) Yes. The question is, is this valid, if Bar defines a sub/static method 'setup'? If Csetup is a Csub, yes.

Re: A Perl 6 class question

2002-08-12 Thread Allison Randal
On Fri, Aug 09, 2002 at 03:09:29PM -0400, Chris Dutton wrote: This one actually came to me just the other night. Would it be possible in Perl 6 to create anonymous classes? Something like: my $foo_class = class { method new { # yada yada yada } } my

Re: A Perl 6 class question

2002-08-12 Thread Trey Harris
Another one... class Foo is Bar; method a { setup(); } 1; # EOF (Is the 1 still required? I think I heard Damian say it was going away.) The question is, is this valid, if Bar defines a sub/static method 'setup'? Is my instict right that 'sub' in a class is a 'class/static method' in the

Re: A Perl 6 class question

2002-08-12 Thread Allison Randal
On Sat, Aug 10, 2002 at 07:30:19PM -0400, Chris Dutton wrote: The only problem I could see, and I wanted to wait for at least one other opinion before mentioning this, is rewriting the above as: my $foo_class $foo_obj = $foo_class.new; I'm not exactly sure what you're trying to do with

Re: A Perl 6 class question

2002-08-12 Thread Chris Dutton
On Monday, August 12, 2002, at 01:27 PM, Allison Randal wrote: On Sat, Aug 10, 2002 at 07:30:19PM -0400, Chris Dutton wrote: The only problem I could see, and I wanted to wait for at least one other opinion before mentioning this, is rewriting the above as: my $foo_class $foo_obj =

A Perl 6 class question

2002-08-10 Thread Chris Dutton
Since Adam Lopesto asked a non-regex question, I don't feel quite as out of place for doing the same. This one actually came to me just the other night. Would it be possible in Perl 6 to create anonymous classes? Something like: my $foo_class = class { method new { #

Re: A Perl 6 class question

2002-08-10 Thread Chris Dutton
On Saturday, August 10, 2002, at 06:25 PM, Piers Cawley wrote: Chris Dutton [EMAIL PROTECTED] writes: Since Adam Lopesto asked a non-regex question, I don't feel quite as out of place for doing the same. This one actually came to me just the other night. Would it be possible in Perl 6 to