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
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Tue Dec 18, 2007 5:44 pm   

[2.18] Implicit concat problem
 
I have a number of buttons using this type of concat in thier captions, it causes some very nasty problems loading with this bug.

Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Enter at the command line
Code:
#TEST {%if(@b,,)@a(1)}

4. Examine the compile report and you will see there is no problem, click OK when done
5. Enter at the command line
Code:
#TEST {@a(1)%if(@b,,)}

Again the compile report looks fine.
6. Click OK on the report and the error will be echoed in the window.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Wed Dec 19, 2007 12:32 pm   
 
I'm just curious, but why do you use %if with empty arguments for both the second and third arguments? It seems that you're doing absolutely nothing with the function there, as both true and false conditions give a null value.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Wed Dec 19, 2007 5:59 pm   
 
Actually getting null returns is the entire point. It is something I use in buttons and status bars to eat an update variable. The change in the variable forces an update of the caption, and the %if causes nothing to be displayed.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Mar 15, 2008 1:27 pm   
 
Bumping this for 2.20. I am still seeing the problem with the null parameters in %if described above.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Mar 17, 2008 5:14 pm   
 
Yes, this is still on the bug list, sorry.
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