Ticket #1005 (closed patch: done)
Use VTABLE_is_equal instead of MMD in Hash and ResizablePMCArray
Reported by: | flh | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | trunk |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | applied | Platform: | all |
Description
The "is_equal" methods of Hash and ResizablePMCArray currently use Parrot_mmd_dispatch_from_c_args to compare their elements.
This makes the attached example fail (VTABLE methods are not automatically registered as MULTI).
I've attached two patches (one for Hash, the other one for RPA) which:
- replace the MMD call with VTABLE_is_equal (this matches what is currently done in FixedPMCArray),
- add some tests to cover this code.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.