Pre ANSI C was wild!
8 and 9 were valid octal digits, they had the octal values 10 and 11
Found this in the C99 rationale: open-std.org/jtc1/sc22/wg14
old C reference manual: bell-labs.com/usr/dmr/www/cm
Wish we had a live version to try
#cprogramming #programming #PreANSICWasWild
Conversation
I collected on my tweets on this topic in one place: twitter.com/shafikyaghmour
Apparently this was my tweet that got the most impressions.
Quote Tweet
This concludes Programming Language Archeology covering Pre ANSI C.
Posts (Titles in image):
1. twitter.com/shafikyaghmour
2. twitter.com/shafikyaghmour
3. twitter.com/shafikyaghmour
4. twitter.com/shafikyaghmour
5. twitter.com/shafikyaghmour
#cprogramming #programming #PreANSICWasWild
Show this thread
Replying to
I mean it kinda sounds reasonable to use 8 and 9 in octal too ;)
1
Replying to
Current OpenVMS C compilers still support a K&R mode (VAX C, CC/STANDARD=VAXC), and do support this octal extension: h41379.www4.hpe.com/commercial/c/d
telnet or ssh into the registration username at decuserve.org for shell access.
1
3
Replying to
Right, so... Some of the stuff such as the casting via member access is *reasonable*, but... This I'm tearing my hair out because of... Would writing 018 mean what we today know as 020, or would it be 0110?
4
Show more replies



