Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
dbosst
Apprentice


Joined: 15 Jun 2010
Posts: 121

PostPosted: 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)
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Sat Jul 03, 2010 10:24 pm   
 
Try #winexec, perhaps? Er, I think that's the command.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Jul 03, 2010 10:28 pm   
 
#EXECWIN, not #WINEXEC. ;)

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net