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

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


Joined: 19 Jul 2004
Posts: 68

PostPosted: Thu Jan 17, 2008 2:30 am   

Special characters in variables.
 
Straightforward problem: if special characters get into variables*, strange things can happen when performing checks on that variables for processing (eg, comparing two strings). So, is there any way to force a literal interpretation of expanded variables? I tried %quote(), both in the #FORALL structure and pre-emptively ( #var myvar %quote(@myvar) ), but to no avail.

if it's relevant, the issue occurs within a nested #FORALL structure, so may involve %i or %i and %j

*This usually seems to happen when a smiley is captured.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Jan 17, 2008 4:44 am   
 
Are you talking about CMUD? I posted something similar to variables on the CMUD Forums. zMUD is feature/bug complete, meaning no more upgrades will be made. You haven't really gave much information otherwise.

Charneus
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jan 17, 2008 4:55 am   
 
In ZMud, special characters play havoc (and knick-knack pattiwhack, too) on the parser. There's really no way around this other than to change your characters to something very rarely used if %quote() or %literal() don't fix it for you. I ran into this issue regarding periods (speedwalk character) passed to a user function that put the commas back into a number (user function because I was bored and decided to include more delimiters than commas).
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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