#906: [PIR] Assignment syntactic sugar restricted to destination parameters
---------------------+------------------------------------------------------
 Reporter:  allison  |       Owner:  kjs  
     Type:  todo     |      Status:  new  
 Priority:  normal   |   Milestone:  2.6  
Component:  pirc     |     Version:  1.4.0
 Severity:  medium   |    Keywords:       
     Lang:           |       Patch:       
 Platform:           |  
---------------------+------------------------------------------------------
 IMCC currently allows the '=' syntactic sugar on all opcodes, even when
 the first register is an input argument rather than an output argument.
 PIRC correctly detects and handles these cases, so when the transition to
 PIRC is made any code using, for example:

     $S0 = print
     $P0 = substr 1, 2, "x"

 Will have to change to:

     print $S0
     substr $P0, 1, 2, "x"

 This behavior will not be changed in IMCC. See
 http://rt.perl.org/rt3/Public/Bug/Display.html?id=36283 for the history.

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