Skip to content
Prev 47222 / 63424 Next

what is the correct way to force a copy of an object?

On 13-11-22 4:43 PM, Skye Bender-deMoll wrote:
No, lazy evaluation is a higher level concept.  Your problem is that you 
are modifying something without guaranteeing nobody else is using it.
That's not the right way to fix this.
duplicate(x) at the C level is the only way to do this.  You can look at 
NAMED(x) to decide if this is necessary, or just do it unconditionally.

Duncan Murdoch