"A. Pagaltzis" <[EMAIL PROTECTED]> writes:
> * Martin Kjeldsen <[EMAIL PROTECTED]> [2006-05-24 12:25]:
>> I understand this as the hash entry with key 'array' get
>> assigned a array consisting of $count number multiplied by
>> $scale. If that is right, we must be modifying $arg_for
>> (%buckets) since we are adding an entry to the hash.
>
> $arg_for is a reference to a hash. The hash is modified, but
> not the reference to it.

It's probably an unimplemented/buggy feature of Pugs.

I didn't completely follow every detail of your discussion but I know
of a problem where aliasing only works readonly, currently. There is a
pugsbugs-test for that problem. See

  http://svn.perl.org/perl6/pugs/trunk/t/pugsbugs/value_alias_readonly.t

Currently one has to workaround that, e.g. work with hash elements and
explicitly assign the result back via "%hash{$_} = ..." or similar.

AFAIR.

GreetinX
Steffen 
-- 
Steffen Schwigon <[EMAIL PROTECTED]>
Dresden Perl Mongers <http://dresden-pm.org/>

Reply via email to