Put the code below into main.pro. Note what happens to the display of string S1 in the Variables window when running the application in the debugger. String is handled OK but displayed is ablated in some circumstances.
Code: Select all
run() :-
S1 = "A1", % Variables display behaves the same with "01" or "_1"
S2 = "002",
Sc1 = string::concat("Test:", S1),
Sc2 = string::concat("Test:", S2),
_ = stdio::readLine().
Code: Select all
main::run()
S1 = "1"
S2 = "002"
Sc1 = "Test:A1"
Sc2 = "Test:002"