From 4285784675350699405
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/13
Message-ID: <37B43EA0.5546@wanadoo.fr>#1/1
X-Deja-AN: 512301743
Content-Transfer-Encoding: 8bit
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <7nt3vl$1oe$1@nnrp1.deja.com> <7oh7o8$t3f$1@nnrp1.deja.com> <37AE541B.A998F729@cs.utu.fi> <cTqioZABDwr3EwfO@robinton.demon.co.uk> <37AFAC37.6B7F4253@cs.utu.fi> <t7aerz1pxp.fsf@calumny.jyacc.com>
X-Original-Date: Fri, 13 Aug 1999 17:49:52 +0200
Content-Type: text/plain; charset=iso-8859-1
Organization: Ecole normale superieure
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN7Q/BawEuYhIxRhxAQFrmgH/fRFy4KhknImErpNw2xP/Amv8G+9rZtct +B121PCujSog+CI3YZaMMLKBkMLzlSOkktBtHAac/VlOrtOTiI2dLg== =KLWa
Mime-Version: 1.0
Newsgroups: comp.std.c++

Hyman Rosen wrote:

> Jaakko Jdrvi <jaakko.jarvi@cs.utu.fi> writes:
> > If we had typeof, declare could be implemented as a macro (with
> > different syntax though):
> > #define DECLARE(VAR,EXPR) typeof(EXPR) VAR = EXPR
> > Consequently, the implementation should be
> > more or less straightforward.
> 
> The C++ committee has adopted an Occam's Razor approach, 

When ? References ?

> Given that declare is easily implementable given typeof,
> while typeof is not implementable in terms of declare, there is no chance
> that declare would be adopted.

How do you know ? Do you have a crystal ball ?

-- 

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              ]



