[svn:parrot] r45093 - branches/shallow_clone/src/pmc
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Mon Mar 22 03:36:58 UTC 2010
Author: plobsing
Date: Mon Mar 22 03:36:53 2010
New Revision: 45093
URL: https://trac.parrot.org/parrot/changeset/45093
Log:
fix default.clone
I can't beleive this actually works!
Modified:
branches/shallow_clone/src/pmc/default.pmc
Modified: branches/shallow_clone/src/pmc/default.pmc
==============================================================================
--- branches/shallow_clone/src/pmc/default.pmc Mon Mar 22 03:11:06 2010 (r45092)
+++ branches/shallow_clone/src/pmc/default.pmc Mon Mar 22 03:36:53 2010 (r45093)
@@ -1058,14 +1058,14 @@
=item C<PMC* clone()>
-Clones this PMC. By default, this just does a freeze and thaw.
+Clones this PMC. By default, just creates a new, uninitialized instance.
=cut
*/
VTABLE PMC* clone() {
- return Parrot_thaw(interp, Parrot_freeze(interp, SELF));
+ return Parrot_pmc_new_noinit(INTERP, SELF->vtable->base_type);
}
/*
More information about the parrot-commits
mailing list