# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #48507] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=48507 >
The n_add, n_sub, etc. opcodes don't seem to work when an object is used as the first source operand. Here's the test: $ cat x.pir .sub main :main $P0 = subclass 'Float', 'Num' $P1 = new 'Num' $P1 = 4.1 say $P1 n_add $P2, $P1, 5 say $P2 .end $ ./parrot x.pir 4.1 Object must be created by a class. current instr.: 'main' pc 22 (x.pir:8) $ The 'add' opcode seems to work, however. $ cat y.pir .sub main :main $P0 = subclass 'Float', 'Num' $P1 = new 'Num' $P1 = 4.1 say $P1 $P2 = new 'Num' add $P2, $P1, 5 say $P2 .end $ ./parrot y.pir 4.1 9.1 $ Pm