Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!husc6!panda!genrad!decvax!tektronix!uw-beaver!uw-june!entropy!dataio!bright From: bright@dataioDataio.UUCP (Walter Bright) Newsgroups: net.lang.c Subject: Re: Error recovery (long) Message-ID: <1014@dataioDataio.UUCP> Date: Mon, 9-Jun-86 14:53:37 EDT Article-I.D.: dataioDa.1014 Posted: Mon Jun 9 14:53:37 1986 Date-Received: Sat, 14-Jun-86 03:51:35 EDT References: <312@uw-nsr.UUCP> <1009@dataioDataio.UUCP> <397@peregrine.UUCP> Reply-To: bright@dataio.UUCP (Walter Bright Distribution: net Organization: Data I/O Corp., Redmond WA Lines: 11 In article <397@peregrine.UUCP> mike@peregrine.UUCP (Mike Wexler) writes: >In article <1009@dataioDataio.UUCP> bright@dataio.UUCP (Walter Bright writes: >>The declaration for a can be made 'read only' by declaring it as follows: >> const int a = 1; >>Doing an assignment to a will then cause a syntax error when compiling. >>This is in the draft ANSI C spec. >This only works if you have an ANSI C compiler. Do you? I use the Datalight C compiler which does support const and volatile as defined in the draft standard. No other compiler that I'm aware of does.