From -2016909353129858603
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ede379f5dbbc1549
X-Google-Attributes: gidf78e5,public
From: Andrei Alexandrescu <andrewalex@hotmail.com>
Subject: Re: Suggestion: "typeof" keyword
Date: 1999/08/06
Message-ID: <7oa71e$uju$1@nnrp1.deja.com>#1/1
X-Deja-AN: 509510515
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <7nt3vl$1oe$1@nnrp1.deja.com>
X-Original-Date: Wed, 04 Aug 1999 20:15:54 GMT
X-Authentication-Warning: backdraft.briar.org: smap set sender to <news@dejanews.com> using -f
X-Http-User-Agent: Mozilla/4.51 [en] (Win98; U)
X-Http-Proxy: 1.0 x33.deja.com:80 (Squid/1.1.22) for client 63.65.42.201
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Wed Aug 04 20:15:54 1999 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN6qZkawEuYhIxRhxAQHQHAIAj66QsbqF0zR002d2fc1VdpNX+HtYW7Qi WeZFq8i9zYObjM7quyQprtofB3VAV3Rao7vGmiR4g6rZuDBDWGZ37Q== =vu2h
X-MyDeja-Info: XMYDJUIDaandrei
Newsgroups: comp.std.c++

In article <7nt3vl$1oe$1@nnrp1.deja.com>,
  niklasb@my-deja.com wrote:
> I have in mind a keyword, typeof

Cool. Siemel Naran and I are two loud proponents of it. Some have
constantly "proven" us that either it can be easily simulated with the
current language (it's not), that it's hard to implement (it's not), or
that it wouldn't solve any real problem (it would).

The only way you can partially simulate it is via traits and partial
specialization, which is clumsy, unintuitive, and potentially
incomplete. (You have iterator_traits, but not container_traits,
type_traits, ...)


Andrei


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
---
[ 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              ]



