| View previous topic :: View next topic |
| Author |
Message |
Roland
Joined: 08 Jun 2006 Posts: 238
|
Posted: Sun Jul 29, 2007 11:53 pm Post subject: Strange behavior when calling a function after a '}' |
|
|
Both this
| Code: | Loop {
Sleep 1000
} function()
function() {
} |
and this
| Code: | Loop {
Sleep 1000
} function(p1)
function(p1) {
} |
yields an error message.
This, however, is fine:
| Code: | Loop {
Sleep 1000
} function(p1, p2)
function(p1, p2) {
} |
So you need at least two parameters to call a function on the same line as a closing brace - that seems buggy  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Mon Jul 30, 2007 1:56 pm Post subject: |
|
|
Although I don't think it was intended or documented that anything other than an ELSE be supported after a '}', it's clearly desirable. It will be fixed in the next update.
Thanks. |
|
| Back to top |
|
 |
|