#1073: Lexical redeclarations in subs should throw exceptions
-----------------------+----------------------------------------------------
 Reporter:  chromatic  |       Owner:  kjs  
     Type:  feature    |      Status:  new  
 Priority:  normal     |   Milestone:       
Component:  pirc       |     Version:  1.6.0
 Severity:  medium     |    Keywords:  PIR  
     Lang:             |       Patch:       
 Platform:  all        |  
-----------------------+----------------------------------------------------
 This code should throw an exception:

 {{{
 .sub 'main' :main
     .lex 'foo', $P0
     .lex 'bar', $P1
     .lex 'foo', $P2
 .end
 }}}

 I'll add a TODO test for it in t/compilers/imcc/syn/clash.t when I get
 this ticket's number.

 Please note that adding this exception to IMCC is fairly intractable
 without rewriting most of IMCC's symbol handling.  I believe our best
 chance to make this work is with pirc.

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