#452: [TODO] Don't use MULTI when not needed
---------------------+------------------------------------------------------
Reporter: allison | Owner: cotto
Type: todo | Status: assigned
Priority: normal | Milestone: 1.4
Component: none | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Changes (by cotto):
* owner: => cotto
* status: new => assigned
Comment:
Attached is an example patch that switches Integer to use a simple
is_equal VTABLE function with a switch. I have two questions about it:
First, is what should happen in general or am I missing something/doing
something wrong? All tests pass except one.
Second, the failing test is the last one in t/pmc/array.t. It happens
because Array's is_equal VTABLE function uses
Parrot_mmd_multi_dispatch_from_c_args to call is_equal. Since Integer
doesn't have an is_equal MULTI anymore, this dispatches to the wrong place
(maybe Undef's is_equal MULTI?). What code needs to be fixed in this
case?
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/452#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets