From -8174785448938620380
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ede379f5dbbc1549
X-Google-Attributes: gidf78e5,public
From: Hyman Rosen <hymie@prolifics.com>
Subject: Re: Suggestion: "typeof" keyword
Date: 1999/08/25
Message-ID: <t7906zzqsi.fsf@calumny.jyacc.com>#1/1
X-Deja-AN: 517138795
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <7nt3vl$1oe$1@nnrp1.deja.com> <user-1808991258230001@aus-as3-121.io.com> <37BBE6CC.FE2475E5@physik.tu-muenchen.d <slrn7rph2r.e43.sbnaran@localhost.localdomain> <7pumbc$blc@abyss.West.Sun.COM>
X-Original-Date: 25 Aug 1999 13:57:49 -0400
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 935608861 32275 128.250.29.17 (25 Aug 1999 19:21:01 GMT)
Organization: PANIX Public Access Internet and UNIX, NYC
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAN8RCA+EDnX0m9pzZAQF3lgF+Oo9SnidW9mHEzSEjV9oHoERdXJlokBpq MCaQQUObXJ4Q8RcnqGBeHJJGUko3XDgq =WfFb
Mime-Version: 1.0
User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3
NNTP-Posting-Date: 25 Aug 1999 19:21:01 GMT
Newsgroups: comp.std.c++

stanley@West.Sun.COM (Stanley Friesen [Contractor]) writes:
> In article <slrn7rph2r.e43.sbnaran@localhost.localdomain>,
> >The next question is what is more intuitive to use: that typeof throws
> >away top level const and value/reference distinction, or retains it?
> >
> Answer: keeps const/volatile, throws away value/reference.

I'm the one who posted the version that discarded top-level cv-qualifiers.
I've changed my mind. I agree that it is better to keep them because they
can be easily discarded if that's needed, while they can't be recovered if
they are always discarded.
---
[ 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              ]



