From 8bcb83035607371a2326374665e9cc56c662a783 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 30 Dec 2011 22:40:21 -0700 Subject: Wow, dictionaries, nested dictionaries, for loops They all work. I still think I should change the lists to arrays in the backend so they can be indexed as well as iterated over and appended to. --- src/gamestate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gamestate.h') diff --git a/src/gamestate.h b/src/gamestate.h index e32eeaa..5c47ce0 100644 --- a/src/gamestate.h +++ b/src/gamestate.h @@ -29,10 +29,10 @@ public: bool hasVariable( const Bu::String &sName, ScopeId id ); void delVariable( const Bu::String &sName, ScopeId id ); - Variable getVariable( const Bu::String &sName, ScopeId id=sidLocal ); + Variable &getVariable( const Bu::String &sName, ScopeId id=sidLocal ); void setVariable( const Bu::String &sName, const Variable &v, ScopeId id=sidLocal ); - Variable deref( const Variable &src ); + Variable &deref( Variable &src, bool bCreate=false ); Bu::StringList tokenize( const Bu::String &sSrc ); void exit(); -- cgit v1.2.3