Compiler version: 10.2017
String constants may be concatenated simply by appending them one after the other, seperated by blanks. The maximum length may not exceed 254 at the moment.
With older releases of the compiler, it was not possible to mix normal, hex and binary representations in such concatenations. And the length limit was not computed correctly with hex string constants.
When migrating to the new (external) scanner PASSCAN, these problems could be solved.
Definitions like the following are now possible:
|
You may have noticed that these constants are printer control sequences for a HP printer (PCL = printer control language). I translated a very old BASIC program (from the 1980s) into Pascal, which performed simple layout services on text documents, and while doing this, the need for such constant definitions came up.