Until loop that crashes POL

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 098.

Moderator: POL Developer

Post Reply
Naglfar
New User
Posts: 15
Joined: Mon Apr 09, 2007 6:27 am
Location: Poland

Until loop that crashes POL

Post by Naglfar » Sun May 29, 2011 5:48 am

Hello,
I can't post do a Bugs section, can I? :)

There's code that crashes my POL098.1-2009-06-24:

Code: Select all

repeat
  var a;
until(a);
I think ECompile shouldn't allow to compile this.

Yukiko
Distro Developer
Posts: 2668
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Until loop that crashes POL

Post by Yukiko » Sun May 29, 2011 3:59 pm

I suspect that a debugger would be the type of program to find something like you posted. eCompile looks for syntax and grammatical errors during a compile but cannot account for bad logic or poor programming style. But you do make a good point that it would be nice to have some kind of analytical tool that would help in discovering those types of situations.

User avatar
CWO
POL Expert
Posts: 1148
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: Until loop that crashes POL

Post by CWO » Sun May 29, 2011 8:26 pm

That is kinda weird though... eCompile I think SHOULD catch this one only because this in my opinion seems to be an "out of scope" error... somewhat similar to...

Code: Select all

if (true)
   var a := 1;
endif
if (a)

Naglfar
New User
Posts: 15
Joined: Mon Apr 09, 2007 6:27 am
Location: Poland

Re: Until loop that crashes POL

Post by Naglfar » Mon May 30, 2011 4:37 am

CWO wrote:eCompile I think SHOULD catch this one only because this in my opinion seems to be an "out of scope" error
That's my point.

Post Reply