PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
case default bug

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096
Display posts from previous:   

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed May 24, 2006 3:59 am    Post subject: case default bug Reply with quote

Not sure if this is really a bug but it seems the default switch for a case statement won't compile if there is any gap between the reserved word and the colon.

This code:
Code:

case
   1 : does some stuff
   2 : does more stuff
   default : does even more stuff

will not compile. I get this error message:
Quote:

Unhandled reserved word: Unknown Token: (298,8,'default')

with either a tab or spaces after the reserved word.

However this code:
Code:

case
   1 : does some stuff
   2 : does more stuff
   default: does even more stuff

Does compile. Anyway you could allow for spaces/tabs after default? It would make formatting case lists easier.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Thu May 25, 2006 5:15 pm    Post subject: Reply with quote

No comment from the devs here?

Oh well, I usually like a space vetween the case options and the colon. Makes the script neater on the read but maybe I'm weird. Doesn't seem like this would be a difficult 'fix' anyway.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty