#1481: P6metaclass.register does not catch second registration of PMC Class
-----------------------------+----------------------------------------------
 Reporter:  Austin_Hastings  |       Owner:       
     Type:  bug              |      Status:  new  
 Priority:  normal           |   Milestone:       
Component:  none             |     Version:  2.1.0
 Severity:  medium           |    Keywords:       
     Lang:                   |       Patch:       
 Platform:                   |  
-----------------------------+----------------------------------------------

Comment(by NotFound):

 Here is a pure pir version of the example:
 {{{
 .sub main
     load_bytecode 'dumper.pbc'
     load_bytecode 'P6object.pbc'
     .local pmc r
     r = get_hll_namespace ['Key']
     _dumper(r)

     .local pmc P6metaclass
     P6metaclass = get_global 'P6metaclass'

     P6metaclass.'register'('Key')
     r = get_hll_namespace ['Key']
     _dumper(r)

     P6metaclass.'register'('Key')
     r = get_hll_namespace ['Key']
     _dumper(r)

 .end
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1481#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to