🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #4051

Re: references and ellipsis

#4051
From: James Kanze US/ESC 60/3/141 #407...
Date: Mon, 15 Apr 1996 20:32
31 lines
2211 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.

Historical 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, études et réalisations en logiciel orienté objet --
                -- A la recherche d'une activité 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.96Apr15211342@slsvgqt.lts.sel.alcatel.de>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <4kop8j$ino@vishnu.jussieu.fr> <4kpd3v$2fb@engnews1.Eng.Sun.COM> <4kr1p3$67g@mulga.cs.mu.OZ.AU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
Newsgroups: comp.std.c++
Subject: Re: references and ellipsis
Date: 15 Apr 1996 20:32:01 GMT
Organization: GABI Software, Sarl.
Sender: news@lts.sel.alcatel.de
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <KANZE.96Apr15211342@slsvgqt.lts.sel.alcatel.de>
References: <4kop8j$ino@vishnu.jussieu.fr> <4kpd3v$2fb@engnews1.Eng.Sun.COM> <4kr1p3$67g@mulga.cs.mu.OZ.AU>
NNTP-Posting-Host: taumet.eng.sun.com
In-Reply-To: fjh@munta.cs.mu.OZ.AU's message of 14 Apr 1996 15:08:25 GMT
Apparently-To: std-c++@ncar.ucar.edu
Content-Length: 1073
X-Lines: 24
Originator: clamage@taumet