[DGD] arrays

Felix A. Croes felix at dworkin.nl
Wed Oct 10 14:52:37 CEST 2001


pete at ana.sk wrote:

> > Once again, yes.  Arrays are shared.  Use
> > 
> >     b = a[..];
> > 
> > if you want a copy.
>
> Ok, thanks, sorry for troubling you. I knew arrays were shared, but 
> i was imagining that a "shared" means copy-on-write behaviour. Is 
> there anything else that is shared (not copy-on-write)? Mappings 
> maybe? Or strings?

Mappings are like arrays in this.  Strings are copy-on-write; from an
LPC programmer's perspective, they are not shared.

Regards,
Dworkin
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list