Ticket #1481 (new bug) — at Version 1
P6metaclass.register does not catch second registration of PMC Class
Reported by: | Austin_Hastings | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 2.1.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description (last modified by Austin_Hastings) (diff)
Registering a PMC class works. Registering the same class a second time does not produce a diagnostic - although attempting to register a non-PMC class twice does.
Also, the second register produces some horrible results.
main(); sub main() { pir::load_bytecode('dumper.pbc'); pir::load_bytecode('P6object.pbc'); my $nsp; $nsp := Q:PIR { %r = get_hll_namespace ['Key'] }; _dumper($nsp); P6metaclass.register('Key'); $nsp := Q:PIR { %r = get_hll_namespace ['Key'] }; _dumper($nsp); P6metaclass.register('Key'); $nsp := Q:PIR { %r = get_hll_namespace ['Key'] }; _dumper($nsp); }
Change History
Note: See
TracTickets for help on using
tickets.