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
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Thu Jun 17, 2010 11:52 pm   

[3.19f] BUG: Default values not working properly
 
Default values don't seem to be working correctly. I first noticed this when reporting this bug: http://forums.zuggsoft.com/forums/viewtopic.php?t=35310

Load this variable into a fresh session:

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <var name="testvar" type="Record" usedef="true" copy="yes">
    <value>b=2|a=1</value>
    <json>{"b":2,"a":1}</json>
  </var>
</cmud>


Close the session, open it, and the variable will not be returned to it's default value.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Jun 18, 2010 2:27 am   
 
Confirmed. The JSON value seems to be getting set *after* the default value has been loaded. So the default gets overwritten. Added to bug list.
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