This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: _Complex and _Imaginary datatypes
- From: dewar at gnat dot com (Robert Dewar)
- To: ertr1013 at student dot uu dot se, jrh29 at po dot cwru dot edu
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 23 Feb 2003 19:30:12 -0500 (EST)
- Subject: Re: _Complex and _Imaginary datatypes
> Do you have any numbers on how large this increase in complexity is?
> Without looking closely at the issue I suspect the increased complexity
> from this is quite small, especially when compared to other language
> additions in C99 like variable-length arrays.
I think it would actually make the compiler *more* complicated to have
type complex be in a library. You would still want the compiler to recognize
this type specially and generate efficient code knowing about the type, and
this might be more difficult, not less if the type is not integral to the
language. Yes, it might make a simple student-type compiler simpler, but
then such projects can omit complex in any case.