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: Mon Oct 02, 2006 12:54 pm   

[1.08] Breaking key/value variables
 
First, set up a variable
test.a="a"
test.b="b"

Then to show it's working
#show @test.a
#show @test.b
#showdb @test

Displays what you'd expect
Code:
a
b
a: a
b: b


Then try
test.b = @test.a

test.a *should* remain totally unaffected, but it seems to break the structure of the variable
#show @test.a
will now return a blank line

#show @test.b
will now return
Code:
ba

where the block is actually a record separator, equiv of %char(30)

and #showdb @test displays
Code:
b:
a: a
b: ba


A way to fix this is using
test.b=%expand(@test.a)

But might still indicate a parsing problem?
_________________
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: Mon Oct 02, 2006 7:05 pm   
 
Yep, another obscure parser problem. It wasn't generating the correct code for the syntax:

var.prop = @var.prop

This is fixed in 1.09. Thanks for the report. These are the kind of bugs I really need to squash!
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