[RFC] type safe trees

Nathan Sidwell nathan@codesourcery.com
Wed Jun 23 17:04:00 GMT 2004


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




More information about the Gcc mailing list