Clinton Jeffery wrote: > ---------- Forwarded message ---------- > From: *Jafar Al-Gharaibeh* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > There is a version of deepcopy() function in the unicon book. it > works recursively for lists and sets but it is not general for arbitrary > data structures including records with with different field counts/names. > > Do you have such a very general deepcopy utility function ? (the new > copy should not have any reference to the original copy )
Uh, I guess I'm confused. What's broken in the deepcopy() in the book? It looks like it handles arbitrary structures (sets, tables, lists, *and* records). What's missing/broken? Does the record copy handle classes ok (I assume so...). The only thing I can see is that, with tables, the keys are not deepcopied, just the values - and I'm not even sure what it means to deepcopy the keys of a table! -- Steve Wampler -- [EMAIL PROTECTED] The gods that smiled on your birth are now laughing out loud. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group