PenUltima Online

It is currently Sat Aug 30, 2008 6:07 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: repeat until
PostPosted: Tue Aug 21, 2007 3:39 am 
Offline

Joined: Thu Jan 18, 2007 2:34 am
Posts: 91
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 21, 2007 8:01 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1120
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 6:18 pm 
Offline

Joined: Thu Jan 18, 2007 2:34 am
Posts: 91
This was the latest release. Can anyone else confirm this?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 23, 2007 1:46 am 
Offline

Joined: Thu Jan 18, 2007 2:34 am
Posts: 91
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl