$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Chris Little (cslittle_at_[hidden])
Date: 2001-05-30 14:07:08
> ----------
> From: 	joel de guzman
> Reply To: 	boost_at_[hidden]
> Sent: 	Wednesday, May 30, 2001 3:04 PM
> To: 	boost_at_[hidden]
> Subject: 	Re: [boost] Re: Automata builder -- interface
> 
> 
> > > if (allow_typeof) {
> > >   typespec = TYPEOF '(' expr ')' | TYPEOF '(' type_id ')';
> > > }
> > >
> 
> <offtopic>
> 
> BTW, I'd love to have typeof. I read somewhere that there
> was a way to simulate this. Any info?
> 
> I'd also love to have: auto var = <expression>
> 
> I hear CW6 and G++3 has typeof. Correct me if I'm wrong.
> It is not standard but Andrei told me it has a very big chance
> to be standard. So, can we simulate: auto var = <expression>
> with typeof?
> 
> </offtopic>
> 
> Joel de Guzman
> 
> 
From the CW6 release notes:
*  Support for GCC 'typeof':
                char	*cp;
                int		*ip;
                long	*lp;
                __typeof__(*cp) c;	// equivalent to "char c;"
                __typeof__(*ip) i;	// equivalent to "int i;"
                __typeof__(*lp) l;	// equivalent to "long l;"
   Two new keywords:
      '__typeof__' (always available)
      'typeof' (only available when #pragma gcc_extensions is 'on')
Chris