 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Fri Mar 06, 2009 9:04 pm
[3.03a - 3.04a] zs.numparam |
Add this alias to the untitled session
| Code: |
<alias name="test" language="Lua" id="1">
<value>print(zs.numparam)</value>
<arglist>$testParam</arglist>
</alias>
|
1) Type "test" (Enter). Output: 0
2) In the package editor right-click on the alias name in the tree, "Execute script", answer Ok or Cancel. Output: -1
Why? |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Mar 06, 2009 9:59 pm |
Not sure, but probably because zs.param depends upon there being a runtime stack associated with the alias, and the Execute script in the package editor doesn't generate any. I'll add this to the bug list, but I think it's pretty minor since the script works in normal context.
|
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Fri Mar 06, 2009 10:08 pm |
| Zugg wrote: |
| I'll add this to the bug list, but I think it's pretty minor since the script works in normal context. |
Yeah, I think I'm gonna test individual parameters for nil instead of using of zs.numparam. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Mar 09, 2009 5:16 pm |
I'll add this to the bug list since you really should be able to use zs.numparam and not need to kludge your scripts.
|
|
|
|
 |
|
|
|