extern
Warner Losh
imp at dancer.Solbourne.COM
Tue Jul 10 05:07:44 AEST 1990
In article <1990Jul5.044045.1534 at acc.stolaf.edu> hannum at haydn.psu.edu
(Charles Hannum) writes:
>"... preprocessor games, ..."? It's not a game. It's a perfectly
>ligitimate [sic] use of the C preprocessor. If we weren't supposed
>to use it, it wouldn't be included (based C's minimalist philosophy).
Yah, right. And I'd suppose that you think the following is also
legal and not a "preprocessor game":
#include "pascal.h"
main()
BEGIN
int foo;
IF (foo) THEN
BEGIN
WRITE ("Fooing today\n");
END
ELSE
BEGIN
WRITE ("No foos today\n");
END
END
The above, while strictly speaking IS 'C' (depending on the defines in
pascal.h, that is), I'd hate to have to maintain something like that.
#define EXTERN extern is a gross preprocessor game that should be
avoided, just as the above cute pascal example should be avoided.
--
Warner Losh imp at Solbourne.COM
Boycott Lotus. #include <std/disclaimer>
More information about the Comp.lang.c
mailing list