no way to escape pound sign

Posted By: pfeldman

no way to escape pound sign - 07/29/08 19:12

The online documentation on strings (at http://www.conitec.com/beta/astring.htm) says that the special sequence "#n" creates a sequence of n blanks. But, what if one wants the actual string "#1"? There doesn't seem to be any way of escaping the pound sign. This looks like a Lite-C design flaw.

Dr. Phillip M. Feldman
Posted By: jcl

Re: no way to escape pound sign - 07/30/08 09:44

I admit that we haven't encountered this problem yet, but ok, we'll implement that "##" will be interpreted as a single "#".
Posted By: Joozey

Re: no way to escape pound sign - 07/30/08 11:41

For concistency I would rather like to see "\#" for escaping, as all the other special chars are treated the same way. Unless it's for certain reasons not possible ofcourse smile
Posted By: pfeldman

Re: no way to escape pound sign - 08/21/08 05:32

Using backslash for escape is more standard.

Thanks!
© 2024 lite-C Forums