This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Putting C++ code into gcc front end
- From: Karel Gardas <kgardas at objectsecurity dot com>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 6 Mar 2003 08:29:27 +0100 (CET)
- Subject: Re: Putting C++ code into gcc front end
On Wed, 5 Mar 2003, Robert Dewar wrote:
> > First five points on this list look quite restrictive
>
> Well "quite restrictive" is not necessarily a bad thing. In particular I would certainly
> favor a rule forbidding the use of templates, because the use of templates can so easily
> get out of hand. Perhaps someone who knows C++ better than I do can formulate rules to
> prevent misuse of templates, but I often see C++ code where the authors seem completely
> fearless when it comes to using the language in a very complex unreadable manner. If we
> let that kind of code in, we are behind, not ahead of the current state of things.
>
I agree that some template code might looks unreadable although templates
are very usable, on the other hand my main complain of this list was
about:
- Don't use exceptions.
since IIRC Tom requires it for his port of libjava verify.cc to java
front-end verify.c
Cheers,
Karel
--
Karel Gardas kgardas at objectsecurity dot com
ObjectSecurity Ltd. http://www.objectsecurity.com