#71: Fix class registry to allow HLL classes of identical names
----------------------+-----------------------------------------------------
 Reporter:  pmichaud  |       Owner:  chromatic
     Type:  bug       |      Status:  new      
 Priority:  major     |   Milestone:  0.9.0    
Component:  core      |     Version:           
 Severity:  medium    |    Keywords:           
     Lang:            |       Patch:           
 Platform:            |  
----------------------+-----------------------------------------------------
 (See also RT #43419 for other examples)

 Creating a HLL class with a name of 'Object' results in
 "Class Object already registered!".

 {{{
 $ cat y.pir
 .HLL "perl6", ""

 .namespace

 .sub main :main
 # works
 $P0 = new 'Class'
 $P0.'name'('AnObject')
 $S0 = $P0
 say $S0

 # fails
 $P0 = new 'Class'
 $P0.'name'('Object')
 $S0 = $P0
 say $S0
 .end

 $ ./parrot y.pir
 perl6;AnObject
 Class Object already registered!
 current instr.: 'main' pc -1 ((unknown file):-1)
 called from Sub 'main' pc 36 (y.pir:12)
 $
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/71>
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