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: [RFC] type safe trees


Gabriel Dos Reis wrote:
So, we don't want C++, we find C too restrictive in the expressive
power it gives us and we end up inventing a new language we
have to learn?
yes, because C++ is not a perfect match either

If we were going to teach gentype a new language and use it
for anything, I would strongly suggest we teach it a *subset* of
C++ that is simple enought to get it generate the C bits we
want out of it.
I thought about this and doing it in C++ syntax would still require
munging to produce accessor macros and tables of node sizes/class and
other associated stuff.  We have created and used little languages in gcc
already, this one's fairly simple.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



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