This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c++ "with" keyword
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, jsm28 at cam dot ac dot uk
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 5 Jan 2003 13:24:41 -0500 (EST)
- Subject: Re: c++ "with" keyword
> As does the source code to the Bourne shell (V7 Unix is now free software
> (BSD with advertising clause), freed by Caldera).
>
> http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/
>
> (especially mac.h for the macros converting this other language into C).
Gosh that's really naughty :-) [using the C macro feature to subvert the
syntax]. I wish I had known this when my students were writing bootstrapping
compilers, still I suppose it was a good excercise for them to create macro
sets of their own (about half bootstrapped using the A68 to C translator,
the other half by writing similar sets of C macros).
It's quite fun to look at that code, but it must drive some C programmers
nuts!