PenUltima Online

It is currently Thu Aug 28, 2008 8:48 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: case default bug
PostPosted: Tue May 23, 2006 11:59 pm 
Offline

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

_________________
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: Thu May 25, 2006 1:15 pm 
Offline

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

_________________
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  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl