> I have a weird bug where concatenation is sometimes failing, and I > have no idea why. See the attached pasm. I fully expect both works and > weird to output "foo", "bar", "quux" with various levels of spacing, > but weird doesn't output quux. > ...
If I add just one print-command to that code, concatenation works as expected. Without commented 'print S15' line, this prints "wierd: [foo bar]" with additional 'print S15' line, this prints "foo wierd: [foo bar quux ]" which is OK. So this bug isn't (only) in concat-opcode. set S0, "foo " set S1, "bar " set S2, "quux " set S15, "" concat S15, S0 print S15 # add this line and concatenation works concat S15, S1 concat S15, S2 print "wierd: [" print S15 print "]\n" end -- Markus Laire 'malaire' <[EMAIL PROTECTED]>