> I have a weird bug where concatenation is sometimes failing, and I
> have no idea why. 
> ...

While trying to find shortest code which reproduces this, I found 
probably related bug where string is overwritten by a constant in 
memory.

set S0, ""
set S1, "ABCDEFGHIJK"
set S2, "123456789012"
concat S0, S1
concat S0, S2
print "This text overwrites part of S0 :\n"
print S0
end

which prints:
This text overwrites part of S0 :
ABCDEFGHIJK1This text o

You can change lengths of S1 and S2 a bit, and this still works.
Overwritten part always starts at 4-character boundary.

-- 
Markus Laire 'malaire' <[EMAIL PROTECTED]>

Reply via email to