Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
asm
Wanderer


Joined: 19 Jul 2004
Posts: 68

PostPosted: Fri Jan 04, 2008 7:00 am   

%replaceitem() buggy?
 
Noticed something funny going on with a somewhat simple script I moved from Z to C. After playing with the debugger I think, AFAICT, it might be that %replaceitem() concats instead of replaces if the target is the last word in a stringlist...anyone else had a similar problem, perchance? (On 2.18.)
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Fri Jan 04, 2008 7:47 am   
 
Does the same for me.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
frasten
Beginner


Joined: 06 Jan 2006
Posts: 24

PostPosted: Sun Jan 06, 2008 5:12 pm   
 
The same here. For example:
#echo %replaceitem( 1, 2, "0|0")

prints 0|0|1, and not 0|1, as it should.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jan 06, 2008 6:01 pm   
 
Confirmed on my end.

#var stuff {1|2|3}
#echo %replaceitem(3, 1, @stuff)

3|2|3

#echo %replaceitem(1, 2, @stuff)

1|1|3

#echo %replaceitem(1, 3, @stuff)

1|2|3|1

Charneus
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jan 07, 2008 10:49 pm   
 
Yep, it's on the bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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