Page 1 of 1

repeat until

Posted: Tue Aug 21, 2007 3:39 am
by mr bubbles
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: Select all

var test1 := 2;
var test2 := 2;

repeat

until (test1 == test2)
will crash the server while..

Code: Select all

repeat

until (2 == 2)
works fine.

Using something like until (char.name == char.name) was fine, just seems to hate variables.

Thanks.

Posted: Tue Aug 21, 2007 8:01 pm
by Yukiko
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.

Posted: Wed Aug 22, 2007 6:18 pm
by mr bubbles
This was the latest release. Can anyone else confirm this?

Posted: Thu Aug 23, 2007 1:46 am
by mr bubbles
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.