On Wed, Aug 13, 2003 at 04:26:13PM +0200, Frank Heckenbach wrote:
Emil Jerabek wrote:
Actually, if I read the standard correctly, the `Char' type doesn't need to contain anything but the digits.
And '''', per 6.1.9.
Yes -- but it doesn't have to stand for the apostrophe. So it would be allowed, e.g., to let '''' mean the space, while ' ' is not valid (i.e., the space is not a stringcharacter), to maintain the required one-to-one correspondence.
Moreover, IIUIC, 6.10.* implicitly require that Char contains ' ', '-', '+', '.', and the letters 'a', 'e', 'f', 'l', 'r', 's', 't', 'u' in an implementation-defined case.
Indeed. Which leaves the question if 6.4.2.2 d) 2)/3) apply if only some letters exist. I wouldn't think so. So I propose the following character encoding for the "Really Stupid Pascal Compiler":
0 - 1 f 2 A 3 L 4 s 5 E 6 u 7 r 8 T 9 0 10 1 11 2 ... 18 9 19 (space) 20 . 21 +
Great! A 5-bit encoding, still having 10 free slots for i18n extensions :)
Emil