4 ms·
Metaware High-C version 1.2 (Nov 1985) had underscores in floating point and integer literals. Possibly it had that even earlier. Possibly also taken from Ada
by dfawcus 2y ago
Metaware High-C version 1.2 (Nov 1985) had underscores in floating point and integer literals. Possibly it had that even earlier.
Possibly also taken from Ada, as other text in that section of the manual reference Ada.
See A.3 pg 169 (and 58+) of 235 in: https://bitsavers.org/pdf/metaware/High_C_Language_Reference_Manual_1.2_Nov85.pdf https://bitsavers.org/pdf/metaware/High_C_Language_Reference...
- WalterBright 2y agoI did not know that. Thanks for pointing it out.
- dfawcus 2y agomind, it is also possible that they took that from Algol 68, and 'adjusted it': $ a68g --strict -e '(INT a = 1 000; print((a,newline)) )' +1000 As Algol 68 allows spaces within numbers, as well as within identifiers.