From -1042283881108149440
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ede379f5dbbc1549
X-Google-Attributes: gidf78e5,public
From: Gabriel Dos_Reis <gdosreis@korrigan.inria.fr>
Subject: Re: Suggestion: "typeof" keyword
Date: 1999/08/14
Message-ID: <xajlnbfc920.fsf@korrigan.inria.fr>#1/1
X-Deja-AN: 512783950
Content-Transfer-Encoding: 8bit
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <7nt3vl$1oe$1@nnrp1.deja.com> <7p1vfa$jnq$1@news.hal-pc.org>
X-Original-Date: 14 Aug 1999 05:53:11 +0200
Content-Type: text/plain; charset=iso-8859-1
Organization: I.N.R.I.A Sophia-Antipolis (France)
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN7WlBKwEuYhIxRhxAQGV5wH8CnSZUdyNYM/laVMyJb4o6S1xGroHtxiN 5S1vO6ECbNFF8WGYdB1V1ITosmu8QcH/bIAyAUzvDSIv7KxljtSoRQ== =6PYg
Mime-Version: 1.0
Newsgroups: comp.std.c++

"Greg Brewer" <nospam.gregb@hal-pc.org> writes:

[...]

| Consider one case, class Traits and class Traits_Record;
| template <class T>
| int StoreInDatabase(T *t)
| {
|    // at this point, I needed a record.  No way to declare one.
|    // perhaps typeof could be designed to handle the problem as follows
|    typeof(*t)##_Record record; // resolves to Traits_Record record;

I don't think I'll support such an extension.

Just an opinion.

[Moderator note: no me2 or yes/no votes followups please. --vb]

-- 
Gabriel Dos Reis, dosreis@cmla.ens-cachan.fr
---
[ 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              ]



