This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]