 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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
}}}}} |
|
|
|
 |
|
|
|