Posted: Tue Aug 21, 2007 7:39 am Post subject: repeat until
Just found a bug with using the repeat until method.
If you use a variable in the until argument it will crash the server.
for example
Code:
var test1 := 2;
var test2 := 2;
repeat
until (test1 == test2)
will crash the server while..
Code:
repeat
until (2 == 2)
works fine.
Using something like until (char.name == char.name) was fine, just seems to hate variables.
Thanks.
Author
Message
Yukiko
Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Wed Aug 22, 2007 12:01 am Post subject:
Mr. Bubbles,
Which RC version has this been tested with? I tested under RC3 and no crash. For some reason that I can't remember now, I have avoided using the latest RC.
Umm my mistake, I don't know what i was smoking I think i must have declared the variable INSIDE the repeat loop :/
Guess its not a bug, but maybe a variable that gets declared inside a loop that is used in the exit condition should get caught in the compiler instead of crashing.
I hate when I make stupid mistakes like this, sorry.