Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 08, 2007 3:36 am   

#ALIAS and the multi-line syntax
 
Is the compiler supposed to be throwing a fit if loops and whatnot in an alias don't follow proper indentation rules (like with triggers)? It doesn't, if it's supposed to. Everything compiles just fine even if there's no indentation at all.
_________________
EDIT: I didn't like my old signature
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Apr 08, 2007 2:53 pm   
 
The short answer to you question is that it depends. Technically speaking everything you indent should follow proper indenting rules or it won't compile properly. The fact that it says it does compile may be a bug.

Please post the exact alias for us to look at it and help you verify that.
_________________
Asati di tempari!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Apr 08, 2007 3:15 pm   
 
Any alias will compile with no indentation at all. I imagine it came from that other thread where someone posted an alias and the forum had eaten their indentation, but it still compiled and ran fine. Here's an example:

#alias test {#if (something=something) {
#loop 25 {
#forall blah|blah|blah {
#while (this>that) {
#say boo
}}}}}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net