Interesing bug with word elements
André.Bisseret
Andre.Bisseret at inria.fr
Sat Mar 11 05:44:05 EST 2006
Le Saturday, 11 Mar 2006, à 00:20 Europe/Paris, Arthur Urban a écrit :
> The following code produces what I think is a bug:
>
> put "a" into word 1 of test
> put "b" into word 2 of test
>
> Examining test shows "ab" in word 1, not two words as requested. If
> you change the code from "word" to "line" or to "item" Rev correctly
> produces the lines or items needed to fulfill the command. I'm seeing
> this on Win32, don't know about OSX.
Hi Arthur,
On my Mac G4 0SX, 10.2.8 I get the same. Putting "a" in line 5 of test
creates 4 empty lines before ; it works for items too. But not with
words :
In msg :
put "a" into word 1 of test
put "b" into word 2 of test
put "c" into word 3 of test
put test --> abc
put word 1 of test -> abc
So it's just like you had written :
put "a" into word 1 of test
put "b" after word 1 of test
put test -> ab
Now :
put "b" into word 2 of test
put "a" into word 1 of test
put test -> a
And :
put "b" into word 2 of test
put "a" into word 2 of test
put test -> ba
Well, fortunately :-)
put "a " into word 1 of test -- space after a (could be a solution ?)
put "b" into word 2 of test
put test -> a b
put cr & word 1 of test after msg -> a
put cr & word 2 of test after msg -> b
Likely a lot of more possible amusing tests !;-)))
>
> Bug, or no?
Could be not, if it is documented as Peter said ; I did'nt read this
documentation ;
but I imagine it was difficult to explain that, if "test" includes "a"
as word 1, putting "b" in word 2 appends "b" after "a" in word 1 :-)))
Best regards from Grenoble
André
More information about the use-livecode
mailing list