"-" on Strings revisited
Posted: Fri Sep 20, 2019 7:01 pm
Just found, that in the meanwhile the minus operator from Vo is also in X#/Vo dialect. Great.
For those, who don't know it:
I didn't find this in the docs...
One caveat: Vo-help says "Concatenate without intervening spaces" this is NOT quite true, if you add LEADING blanks to y, they will stay in the result. But the behaviour is ident in X# and Vo, so no complaint
For those, who don't know it:
Code: Select all
local x := "asdf " as String
local y := "1234 " as String
? x-y // "asdf1234" //note: Slen(x) + Slen(y) = Slen(x-y), the blanks are sorted in at the end.
One caveat: Vo-help says "Concatenate without intervening spaces" this is NOT quite true, if you add LEADING blanks to y, they will stay in the result. But the behaviour is ident in X# and Vo, so no complaint