Projects for beginners
Geert Bosch
bosch@gnat.com
Fri Feb 2 09:15:00 GMT 2001
On Fri, 2 Feb 01 11:02:53 EST, Richard Kenner wrote:
The first is that we can think of a header file as a specification of some
facility. That facility depends one some other facilities in a way that we
don't need the user of a facility to bother with. This is very much like the
concept of packages in Ada and similar languages.
If we do this then indeed each such file needs "guards". [...]
I think that would be a major improvement in the compiler, but, as I said,
it a very large job and one that actually requires quite a bit of
detailed knowlege of the compiler.
I agree that in the long term this is the best way to go. Therefore we
should start moving in that direction now, and not wait until the forest
of header files is even more complex than it is now. As Richard says, this
will be a large amount of work, but it will be even more work if we don't
start now.
-Geert
More information about the Gcc
mailing list