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


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Wed Jun 16, 2010 3:07 pm   

3.19e variable creation/importing
 
several places I have code similar to this:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <alias name="testd" copy="yes">
    <value>#local $item1
#addkey $item1 {state=one|Max=6|min=5|ave=5.5|list="6|6|5|5"}
#addkey testvar one $item1</value>
  </alias>
</cmud>


which in 3.17 generates the following variable
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <var name="testvar" type="Record" usedef="true" copy="yes">one="state=one|min=5|Max=6|ave=5.5|list=""6|6|5|5"""</var>
</cmud>


If i past that same variable into 3.19e i get:

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <var name="testvar" type="Record" usedef="true" copy="yes">
    <value>one="state=one|min=5|Max=6|ave=5.5|list=""6|6|5|5"""</value>
    <json>{"one":{"min":"5","Max":"6","ave=5.5":null,"list":[6,6,5,5],"state":"one"}}</json>
  </var>
</cmud>


executing the same code also generates the same variable, notice "ave=5.5":null where i would have expected "ave":"5.5"
_________________
"To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Jun 16, 2010 4:54 pm   
 
Yep, looks like the import parser is having trouble with the "." in 5.5. Confirmed and 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