|
dbosst Apprentice
Joined: 15 Jun 2010 Posts: 121
|
Posted: Sat Jul 03, 2010 5:05 pm
local variables across window |
I understand local variables are only for the current scope
and that when you do something like:
WINDOWNAME:#show @blah
it should refer to the @blah variable in the windowname scope
but if you are using local variables, shouldn't it use the current scope for a local variable and not the WINDONAME scope, since a local variable would never exist in that scope?
ex: Called from an alias in a different window, here using #show with a window named "Room" and a local variable $tme, I thought you should be able to do
Room:#show $tme
instead, to get the desired result you must do
#exec Room:#show $tme
This is a simple workaround
Is this the desired semantics, or a bug?
(I am using the latest 3.22) |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sat Jul 03, 2010 10:24 pm |
Try #winexec, perhaps? Er, I think that's the command.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Jul 03, 2010 10:28 pm |
#EXECWIN, not #WINEXEC. ;)
Charneus |
|
|
|
|
|
|
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
|
|