Ticket #906 (closed deprecation: wontfix)
[PIR] Assignment syntactic sugar restricted to destination parameters
Reported by: | allison | Owned by: | kjs |
---|---|---|---|
Priority: | normal | Milestone: | 2.6 |
Component: | pirc | Version: | 1.4.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.