The following demonstrates that $I1 and .local int i map to the same
register in the output pasm code:

.sub _main
        goto L1
test:
        $I1 = 1
        ret
L1:
.local int i
        i = 2
        call test
        print i         # prints 1, not 2
        end
.end

parrot -o - t.imc shows:
_main:
        branch L1
test:
        set I16, 1
        ret
L1:
        set I16, 2
        bsr test
        print I16
        end


Is this a bug, or am I missing something?

Pete
PS this happens on pow builds 0.0.11 (20/09/03), and 15/11/03
Pete
http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html

Reply via email to