typeof (was Re: C++ PATCH: Fix PR 288)

Doug Gregor gregod@cs.rpi.edu
Mon Feb 19 21:04:00 GMT 2001


On Sunday 18 February 2001 09:12, Phil Edwards wrote:
> On Sun, Feb 18, 2001 at 12:10:47PM -0800, Mark Mitchell wrote:
> > >>>>> "Doug" == Doug Gregor <gregod@cs.rpi.edu> writes:
> >
> >     Doug> In general, the typeof extension need not be semantically
> >     Doug> different from sizeof, but is many times more useful.
>
> [...]
>
> > However, maybe you're arguing that the `typeof' language extension is
> > a good one, relative to some other language extensions?  That could
> > well be.  Your example is indeed compelling.
>
> Every so often somebody raises the idea of typeof on the moderated C++
> newsgroups.  Everybody likes it.  Nearly everybody can agree on exact
> semantics.  Nobody wants to formally propose it as a language addition,
> it seems.
>
> (Although I'm sure that *somebody* will eventually, which is good.)
Unfortunately, GCC's support for 'typeof' is currently broken (I sent a patch 
a short while ago to fix it).  If it is working and well documented perhaps 
is would gain more support in the community and eventually make it into the 
standard.

	Doug Gregor
	gregod@cs.rpi.edu



More information about the Gcc-patches mailing list