[DGD] arrays again
Felix A. Croes
felix at dworkin.nl
Wed Oct 10 15:17:57 CEST 2001
pete at ana.sk wrote:
> mixed test()
> {
> mixed a, b;
>
> a = ({ ({ 1 }) , ({ 2 }) });
> b = a[..];
> b[0][0] = 3;
> return a;
> }
>
> result is ({ {( 3 }) , ({ 2 }) })
>
> you cant mean this seriously! if i want to copy array i shoud make
> recursive cycle and use [..] on each subarray?! i better change dgd
> code to use copy-on-write, or unshare arrays completely then this!
At this point, it is customary for me to refer to other LPC drivers,
other programming languages, and other career options. We completely
understand your abhorrance. It really is not necessary to bring it
up again. Not even a few times for good measure.
Thanks, bye,
Dworkin
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list