#1999: Parrot_PMC_get_pmc : Does it work correctly?
--------------------------+-------------------------------------------------
Reporter: dukeleto | Owner: dukeleto
Type: bug | Status: assigned
Priority: normal | Milestone:
Component: embed/extend | Version: 3.0.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: all |
--------------------------+-------------------------------------------------
Comment(by cotto):
After a bit of digging, here's what's happening. VTABLE_get_pmc on
ArrayIterator returns the array-like PMC being iterated, which is
sensible. The confusion comes from the fact that Parrot_printf (after
many layers of magic and gotos) calls VTABLE_get_string in the array,
which returns a stringification of the number of elements in the array.
In the example above, looking at the type of pmc2 will make it clearer
what's happening.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1999#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets