rfc: macros accepting constructors
Aldy Hernandez
aldyh@redhat.com
Fri Jun 28 09:37:00 GMT 2002
> > foo(((vector int){0, 1, 2, 3}));
>
> I'm probably wrong, but to me it sounded like the guys where smoking the old
> "but macros should behave exactly like functions" pipe. Looks like the smoke
> haven't cleared yet.
well they should... especially since ansi says that library functions
(ahem, printf, strlen, etc), can be implemented as macros. they *should*
behave like functions.
and now with C99 bringing about these {aggregate initilizers}, this
are bound to get broken, if you pass them around.
oh well, it seems no one is agreeing with me on this one.
aldy
More information about the Gcc
mailing list