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
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Jan 27, 2011 7:33 am   

[3.33a]BUG?: #FORALL and ()
 
For some reason, doing the following:

Code:
#FORALL "A|B|C|(|D|E|F|)" {#SAY {%i}}


will display

Code:
A
B
C
|D|E|F|


instead of the expected:
Code:
A
B
C
(
D
E
F
)


Is this a bug, or am I missing something? Quoting it doesn't work, either (not that it should matter since it's already IN quotes...). If I take out the end ), then it displays just fine, by the way...
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jan 27, 2011 6:38 pm   
 
It's because of some left over backwards compatibility with older versions of CMUD where the () in a list was used to indicate a nested list. Even in a literal string. I might eventually remove this compatibility because the 2.x versions of CMUD were such a mess when it came to nested lists. But that's what is causing it.
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