#202486 - 2011-06-21 05:08 PM
Re: Am I going crazy or is it a bug?
[Re: Jeroen]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Short answer - no, it's not optional. Also applies to QUIT. Don't believe the manual, it tells half-truths.
Long answer - yes it is optional BUT in some cases the code following the Exit will be interpreted as the optional parameter. This is because KiXtart is a free format language and newlines don't have any special meaning so the first bit of code on the next line becomes the parameter. When this happens the code "disappears".
I think we may have a FAQ for this, it used to come up a lot usually with misbehaving conditional constructs.
Exiting without setting a status is a really bad habit anyway, so consider it mandatory.
[edit]Found the FAQ, getting a bit long in the tooth but here it is: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Board=5&Number=130059 [/edit]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1821 anonymous users online.
|
|
|