|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Aug 29, 2008 11:38 pm
[2.36] Bug preventing writing of variable |
Gads this has been bugging me for months and I finally tracked it down and made it reproducable.
When I run the following in an alias it won't assign 50 into @temp1.
Code: |
#var temp1 {50|40|30}
#var temp1 %null
#var temp1 50
#say Result: @temp1
|
Here's the class code for where I executed this:
Code: |
<class name="ztemp" id="3339">
<alias name="temp" id="3340">
<value>#var temp1 {50|40|30}
#var temp1 %null
#var temp1 50
#say Result: @temp1</value>
</alias>
<var name="temp1" id="4489"/>
</class>
|
Output:
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Aug 30, 2008 5:24 am |
Confirmed. Oddly enough it only happens the first time the code is run.
|
|
_________________ Asati di tempari! |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Tue Sep 02, 2008 3:56 pm |
Thanks for confirming Tech. Yeah, very strange behavior.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Sep 02, 2008 5:26 pm |
Confirmed and added to bug list. It *is* odd that it only happens the first time.
|
|
|
|
kjaerhus Magician
Joined: 18 Dec 2006 Posts: 317 Location: Denmark
|
Posted: Sat Sep 06, 2008 10:28 pm |
If it's the same thing I experience it's been there since the first CMUD version I think. Every time I start CMUD it's in a state where several of my scripts and triggers will not work the first time either of them is used. After that they will work fine. I've suspected that there was some kinda bug first time a variable was read or something but I have not been able to make a sufficiently simply example to show it here.
It's been annoying me since day one but at least it's only just after you started CMUD so you kinda live with it I guess. |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Sun Sep 07, 2008 3:05 pm |
My theory was that somehow list, followed by a %null, followed by a single variable isn't sticking, that seems to be the necessary order, but it's beyond me why that would be an issue.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Oct 24, 2008 7:34 pm |
Any word on if this will be addressed with the upcoming mapper release?
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Oct 24, 2008 8:27 pm |
The focus on the next beta release is just on the mapper. Other bugs will be fixed during the beta cycle. So yes, it will be fixed before the next *public* version, but not the next *beta* version.
|
|
|
|
|
|