c-sick - (nf)

eich at uiuccsb.UUCP eich at uiuccsb.UUCP
Sat May 5 09:32:00 AEST 1984

uiuccsb!eich    May  4 18:32:00 1984

Reference Manual, 2.4.1 (p180)

	An integer constant consisting of a sequence of digits is taken
	to be octal if it begins with 0 (digit zero), decimal otherwise.
	The digits 8 and 9 have octal value 10 and 11 respectively.

So this isn't a PCC lapse.  And what's wrong with it?  The alternatives
are either to treat the number as decimal or to flag an error.  Neither
seems better to me.

Brendan Eich

More information about the Comp.lang.c mailing list