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
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Thu Nov 30, 2006 9:47 pm   

[1.17] Local DB Records
 
Not sure where we're at with local variables as db records

Anyway, some weirdness maybe

You can't use db record syntax with a local variable normally
so $blah.asd = 123
doesn't work

But you can do
Code:
testvar.one = 1
testvar.two = 2
testvar.three = 3

#LOCAL $testlocal
$testlocal = @testvar
#SHOWDB $testlocal


And the local variable will display correctly at the end because it's been copied from a properly created normal variable.

Might just be that locals are still work in progress, not sure
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Nov 30, 2006 11:54 pm   
 
Yes, locals are a work in progress. They are only supported for normal variables, and only by the #VAR command. Commands like #ADDKEY do not yet support locals, nor does the "dot" syntax. This will be expanded later (after the public release)
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