From 6868226474959894061
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/12
Message-ID: <37B2E9B8.491D@wanadoo.fr>#1/1
X-Deja-AN: 511886874
Content-Transfer-Encoding: 7bit
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
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>
X-Original-Date: Thu, 12 Aug 1999 17:35:20 +0200
Content-Type: text/plain; charset=us-ascii
Organization: Ecole normale superieure
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN7LqQ6wEuYhIxRhxAQExDgH/ZQPqWjZGkxjoAsK28rWniOTgMQ7+Jw+8 MnMqwqWf7Y9hf0//S/iHPuzsioNFoi/jIpqqUsWbHAR725Sgl83Q2g== =UyD8
Mime-Version: 1.0
Newsgroups: comp.std.c++

sirwillard@my-deja.com wrote:

> Though I'd like the introduction of typeof, I feel someone should play
> at least a bit of devils advocate.  What should be the result of the
> following?
> 
> base* p = new derived;
> typeof(*p) copy(*p);

This one is easy: it's crystal-clear that it should create 
a base initialized with the derived object.

The Devil's advocate strikes.
The Devil's advocate misses.
Valentin hits the Devil's advocate.
The Devil's advocate dies.

Do you want the Devil's advocate possessions identified ?
The Devil's advocate had a weak counter-argument when he died.

-- 

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              ]



