#1596: PIR methods fail to be added to PMCs unless marked :nsentry
----------------------+-----------------------------------------------------
Reporter: jonathan | Owner:
Type: bug | Status: new
Priority: blocker | Milestone:
Component: core | Version: trunk
Severity: medium | Keywords:
Lang: perl6 | Patch:
Platform: all |
----------------------+-----------------------------------------------------
The reason that Rakudo won't build on current Parrot
(OK, it may not be the _only_ reason, but it's certainly the current
blocker) boils down to the following:
{{{
.HLL 'perl6'
.namespace []
.sub 'main' :main
$P0 = new 'ResizablePMCArray'
$P0.'HOW'()
.end
.HLL 'parrot'
.namespace ["ResizablePMCArray"]
# XXX If you remove :nsentry here, we fail.
.sub 'HOW' :method :nsentry
say "ok"
.end
}}}
Got it down to PIR only with no Rakudo-y bits, so hopefully it's easy to
work with. Essentially, you should be able to add methods to PMCs without
having to also have them live in the namespace. This seems to be fallout
from the :nsentry work, which is great, but unfortunately we're kinda
blocked on this bug in it.
Thanks,
Jonathan
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1596>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets