#1148: Implement "clone" method for CallSignature
-------------------+--------------------------------------------------------
Reporter: flh | Type: patch
Status: new | Priority: normal
Milestone: | Component: none
Version: trunk | Severity: medium
Keywords: | Lang:
Patch: new | Platform:
-------------------+--------------------------------------------------------
Currently, CallSignature relies on the default clone method, which does
not work as expected: when cloning a CallSignature, it looses all its
stored parameters.
The attached patch implements clone for CallSignature: it duplicates the
argument list (but not the arguments themselves), and all other attributes
of CallSignature.
It also fixes a small bug in hash creation in CallSignature: the hash is
made of pointers to Pcc_cell, but the hash is created as a hash of PMCs,
which prevents cloning.
New test for clone included.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1148>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets