#1492: Get_class <namespace> confuses NSes that have same final name.
-----------------------------+----------------------------------------------
 Reporter:  Austin_Hastings  |       Owner:  whiteknight                
     Type:  bug              |      Status:  assigned                   
 Priority:  normal           |   Milestone:                             
Component:  core             |     Version:  2.1.0                      
 Severity:  high             |    Keywords:  namespace, class, get_class
     Lang:                   |       Patch:                             
 Platform:                   |  
-----------------------------+----------------------------------------------

Comment(by whiteknight):

 I like that idea, Patrick. However, if I make that change the build fails
 horribly.

 {{{
 ./parrot runtime/parrot/library/PGE/Perl6Grammar.pbc
 --output=compilers/tge/TGE/Parser.pir compilers/tge/TGE/Parser.pg
 Parent isn't a Class.
 current instr.: 'parrot;P6metaclass;add_parent' pc 278
 (runtime/parrot/library/P6object.pir:243)
 called from Sub 'parrot;P6metaclass;register' pc 708
 (runtime/parrot/library/P6object.pir:465)
 called from Sub 'parrot;PGE;Match;' pc 18 (compilers/pge/PGE/Match.pir:20)
 called from Sub 'parrot;PGE;Perl6Grammar;Compiler;__onload' pc 24
 (runtime/parrot/library/PGE/Perl6Grammar.pir:74)
 ... call repeated 1 times
 }}}

 So at the very least we are going to need a deprecation cycle and some
 non-trivial fixes to several areas of our standard runtime library. A
 quick review shows that TGE, PGE, and P6object are all going to need
 modifications in order to follow this rule. If this is okay for you, I can
 create a branch to start the work, and add in a deprecation notice.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1492#comment:6>
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