Anonymous classes

2005-05-29 Thread Simon Cozens
Hello, I'm having a seriously good time porting Maypole to Perl 6. If you still have reservations about how Perl 6 is going to be to program in, I urge you to try programming in it. Now, commercial over, I have some questions. What's the syntax for declaring inherited anonymous

Re: Anonymous classes

2005-05-29 Thread Ingo Blechschmidt
Hi, Simon Cozens wrote: I'm having a seriously good time porting Maypole to Perl 6. If you still have reservations about how Perl 6 is going to be to program in, I urge you to try programming in it. Now, commercial over, I have some questions. :) class Foo { has Class

Re: function signatures?

2005-05-29 Thread Ingo Blechschmidt
Hi, Yuval Kogman wrote: We have a pretty complex declarative language for argument processing in the parameter declaration: [...] arity as a number does not give enough reflection into these properties. Indeed. Are signatures going to be an exposed first class object in Perl 6? I hope so,

Fully introspectable Code objects?

2005-05-29 Thread Ingo Blechschmidt
Hi, while responding to nothingmuch++'s post function signatures?, I thought that it'll be great if Code objects were fully introspectable. I.e.: foo.statements; # List of statements foo.statements[0] # First statement foo.statements[2] = ...;# Statement

Re: Anonymous classes

2005-05-29 Thread Simon Cozens
[EMAIL PROTECTED] (Ingo Blechschmidt) writes: I think the only thing you're missing are two braces: $.request_class = class is Foo::Request {}; Thank you; then how do I put methods into $.request_class? -- I will make no bargains with terrorist hardware. -- Peter da Silva

Re: Anonymous classes

2005-05-29 Thread Ingo Blechschmidt
Hi, Simon Cozens wrote: [EMAIL PROTECTED] (Ingo Blechschmidt) writes: I think the only thing you're missing are two braces: $.request_class = class is Foo::Request {}; Thank you; then how do I put methods into $.request_class? $.request_class = class is Foo::Request { method blarb

Re: comprehensive list of perl6 rule tokens

2005-05-29 Thread Jeff 'japhy' Pinyan
On May 26, Patrick R. Michaud said: commit N backtracking fails completely cut N remove what matched up to this point from the string after P N we must be after the pattern P !after PN we must NOT be after the pattern P before P

Re: Fully introspectable Code objects?

2005-05-29 Thread Luke Palmer
On 5/29/05, Ingo Blechschmidt [EMAIL PROTECTED] wrote: Hi, while responding to nothingmuch++'s post function signatures?, I thought that it'll be great if Code objects were fully introspectable. I.e.: foo.statements; # List of statements foo.statements[0] #

Re: function signatures?

2005-05-29 Thread Sam Vilain
Ingo Blechschmidt wrote: Are signatures going to be an exposed first class object in Perl 6? I hope so, too. ~foo.signature; # Signature objects should stringify to a canonized form, e.g.: # ~sub (Str $bar, CoolClass $z where {...}) {...}.signature == # 'Str $bar, ANONCLASS(0xDEADBEEF)'