On Sat, Jul 30, 2005 at 09:40:11AM -0700, Larry Wall wrote:
> Right, so I guess what really happens is ref autogeneration in that
> case, and there's no difference between
> 
>     $x = @array;
>     $x := @array;
> 
> Hey, who said anything about consistency?  :-)

Hm, not exactly.  This form:

    $x = [EMAIL PROTECTED];

Triggers STORE for a tied $x, and allows for assignments to $x
afterwards.  This form:

    $x := [EMAIL PROTECTED];

Destroys $x's current tie, and binds it to a read-only container
(as \ produces rvalues), so future assignments will not work.

I'll post a separate semi-formal analysis of containers to
perl6-compiler.

Thanks,
/Autrijus/

Attachment: pgpLWVpMaTwF6.pgp
Description: PGP signature

Reply via email to