Error recovery (long)

Walter Bright bright at dataioDataio.UUCP
Tue Jun 10 04:53:37 AEST 1986


In article <397 at peregrine.UUCP> mike at peregrine.UUCP (Mike Wexler) writes:
>In article <1009 at dataioDataio.UUCP> bright at 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.



More information about the Comp.lang.c mailing list