Article View: comp.std.c++
Article #4050Re: references and ellipsis
From: James Kanze US/ESC 60/3/141 #407...
Date: Mon, 15 Apr 1996 20:46
Date: Mon, 15 Apr 1996 20:46
29 lines
2252 bytes
2252 bytes
In article <4kr1p3$67g@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus
Henderson) writes:
|> clamage@Eng.Sun.COM (Steve Clamage) writes:
|> >According the draft standard, the results of using a reference
|> >type as the last pararmeter before the ellipsis (...) are
|> >undefined. See section 18.7 "Other runtime support" [lib.support.runtime].
|> Is there any good reason why this has undefined behaviour rather than
|> being ill-formed code? Surely this should be very easy for implementations
|> to detect and diagnose.
Hysterica^H^H^H^H^H^H^Horical reasons, no doubt. Declare the last
parameter a char in C, and you also get undefined behavior.
And it's surely no more difficult to diagnose a double underscore (and
at least one compiler does), which is also `undefined behavior'.
--
James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils, itudes et rialisations en logiciel orienti objet --
-- A la recherche d'une activiti dans une region francophone
---
[ 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 ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Technical Details
Message-ID:
<KANZE.96Apr15211326@slsvgqt.lts.sel.alcatel.de>Path:
arc1-ca.pugleaf.net!in2.uu.net!bounce-backReferences:
<4kop8j$ino@vishnu.jussieu.fr> <4kpd3v$2fb@engnews1.Eng.Sun.COM> <4kr1p3$67g@mulga.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) Message-ID: <KANZE.96Apr15211326@slsvgqt.lts.sel.alcatel.de> X-Original-Date: 15 Apr 1996 19:13:26 GMT Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back Date: 15 Apr 96 20:46:13 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ Subject: Re: references and ellipsis In-Reply-To: fjh@munta.cs.mu.OZ.AU's message of 14 Apr 1996 15:08:25 GMT Organization: GABI Software, Sarl. References: <4kop8j$ino@vishnu.jussieu.fr> <4kpd3v$2fb@engnews1.Eng.Sun.COM> <4kr1p3$67g@mulga.cs.mu.OZ.AU> Apparently-To: std-c++@ncar.ucar.edu X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMXK1yeEDnX0m9pzZAQEjkgF+PWZd72rnYU0+B4yqpLnnRF3Q9O0fgCk3 ZOy0vGXMBK8++GNmM2uf3VGTDrbN2L8c =075m