[fpc-pascal] character escaping with ^LETTER
skalogryz.lists at gmail.com
Mon Jan 19 14:17:52 CET 2015
today I saw this kind of character escaping:
a:=^M; // char(13)
writeln(^X); // char(24)
The code of the character is derived as ord(letter)-ord('A')+1
Not sure which pascal its inherited from... but Delphi 7 does compile it
I vaguely remember it seeing before once .. and ... a lot of time ago.
Should it be added to this page:
http://www.freepascal.org/docs-html/ref/refse8.html#x20-190001.8 ? (need a
bug report created?) or is it documented somewhere else?
CodeTools syntax highlighter won't recognize the syntax as characters
either (delphi 7 highlighter doesn't recognize it as a character escaping
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal