01-09-2005, 08:04 PM
Quote:Just added literal strings with escape chars, as Antoni suggested, you will be able to do:
Code:const crlf = "~n"
On next release.. and ~t, ~13 ~0 (don't do this! etc.. parsing is enabled by OPTION ESCAPE.
I hope you will not use ~ as an ESC characters re-presentations in FB. I rather willing to accept \n, \t \x00 as usually written in C/C++ in their printf and using #ESCAPECHARS ON/OFF as a token.
Code:
#ESCAPECHARS ON
PRINT "This is first line \nThis is second line"
#ESCAPECHARS OFF
'PRINT-OUT:
'-----------------------
'This is first line
'This is second line
'-----------------------
If you want simpler, you could use ESCAPE ON/OFF token. Using ~ will make things even more confusing for basic users.
= inc(¢)