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

: > 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.

Larry

Reply via email to