Re: Transparent / Opaque references = Link / Ref

2005-05-29 Thread TSa (Thomas Sandlaß)
[This is a repost, somehow it didn't get through before, sorry.] Luke wrote: > Both transparent dereferencing (infinite $$foo) and > opaque dereferencing (one-level $$foo) have their uses, but they are > definitely distinct. Well, they are more like variations on a theme. > Instead of adding d

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)

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: comprehensive list of perl6 rule tokens

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

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

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

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 modif

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

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 Cla

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 classe