Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
Posted: Wed May 24, 2006 3:59 am Post subject: case default bug
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
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
Posted: Thu May 25, 2006 5:15 pm Post subject:
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.