From 3847549259664506742
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ede379f5dbbc1549
X-Google-Attributes: gidf78e5,public
From: Valentin Bonnard <Bonnard.V@wanadoo.fr>
Subject: Re: Suggestion: "typeof" keyword
Date: 1999/08/16
Message-ID: <37B5A571.449B@wanadoo.fr>#1/1
X-Deja-AN: 513421642
X-NNTP-Posting-Host: cargo.ens.fr
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <7nt3vl$1oe$1@nnrp1.deja.com> <7oh7o8$t3f$1@nnrp1.deja.com> <7ol6hi$ej9$2@news.BelWue.DE> <cTiioXAhAwr3Ew$X@robinton.demon.co.uk> <t7d7ww1vrz.fsf@calumny.jyacc.com> <e4DSyfA4ALs3Ew0Q@robinton.demon.co.uk> <t7r9laz5hj.fsf@calumny.jyacc.com> <7oup0a$8g2$1@nnrp1.deja.com> <37B3C2AD.5AB722AE@lucent.com>
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: Ecole normale superieure
Mime-Version: 1.0
Newsgroups: comp.std.c++
Originator: clamage@taumet


Salters wrote:
> 
> sirwillard@my-deja.com wrote:

> > What should be the result of the
> > following?
> 
> > base* p = new derived;
> > typeof(*p) copy(*p);
> 
> A syntax error?

Do you suggest that 

    int i (3);

should be a syntax error ?

-- 

Valentin Bonnard


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




