Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

aggregate clone vtable

0 views
Skip to first unread message

Leopold Toetsch

unread,
Mar 10, 2005, 3:00:21 AM3/10/05
to Perl 6 Internals
- Array, PerlArray, Hash, PerlHash clone is a deep copy
- {Fixed,Resizable}PMCArray is a shallow copy

The deep copy of Array and Hash breaks (infinite recursion) with
self-referential structures.

I think the deep copy should be a shallow copy.
Deep copy can always be done in a safe way by freeze/thaw.

leo

0 new messages