Larry Wall <[EMAIL PROTECTED]> writes: > On Wed, 3 Jul 2002, Damian Conway wrote: > : Date: Wed, 03 Jul 2002 19:33:33 -0400 > : From: Damian Conway <[EMAIL PROTECTED]> > : To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > : Subject: Re: what's new continued > : > : Comments (otherwise you have things pretty much right): > > I didn't see the original here. > > : > we can even have hyper-assignment : > : > > : > my ($a, $b) ^= new Foo; > : > : This is unlikely to do what you wanted. It creates a new Foo object and then > : assigns a reference to that one object to both $a and $b. It doesn't create two > : Foo objects. (But maybe one object referenced twice is what you wanted). > > It *might* possibly work to hyper the constructor: > > my ($a, $b) = ^new Foo
Given that, like in Perl 5, there's nothing sacred about the name of the constructor (right??), does this mean that (nullary?) "hyping" will apply to any method? To any sub? Can I call a sub 17 times by saying (undef) x 17 = foo(1,2,3); ? > : > 7.) Quantum superpositions =============== > : > : > if ($x == any($a, $b, $c) { ... } > > The wave function of QS has not yet collapsed in Perl 6. > It's still in the same state(s) as the cat. I believe you will find that it is impossible to copy a quantum wave function. -- Ariel Scolnicov |http://3w.compugen.co.il/~ariels Compugen Ltd. |[EMAIL PROTECTED] "Sometimes people write an 72 Pinhas Rosen St. |Tel: +972-3-7658117 accidental haiku. Damn! Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555 It just happened!"