www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/14/04:30:37

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Organization: Materials Science Centre
To: djgpp AT delorie DOT com
Date: Mon, 14 Oct 1996 09:07:27 GMT
Subject: Re: Help - old dos.h bug?
Message-ID: <F0F7380280@fs2.mt.umist.ac.uk>

  On 11 Oct 1996, Ferdinand Trauttmansdorff wrote:-
> ERROR: c:/djgpp2/include/dos.h:197: parse error before `;'
> 195:  struct _DOSERROR {
> 196:    int exterror;
> 197:    char class;       <---- Isn't "class" a reserved word??
> 198:    char action;
> 199:    char locus;
> 200:  };

  Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> replied:-
> Make it say so, and live happily ever after:

  Indeed why can't the compiler `make it so'? :-
ERROR: c:/djgpp2/include/dos.h:197: reserved word `class' misused       or
ERROR: c:/djgpp2/include/dos.h:197: reserved word `class' instead of name
and be much clearer.
Likewise, e.g. why can't the common sort of mistype `for(i=0;i<n,i++)' produce
a clearer error message such as "too few/many `;' in for() statement"???

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019