🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Linkage revisited

#1637
From: J. Kanze
Date: Mon, 07 Aug 1995 12:11
29 lines
2037 bytes
Warner Losh (imp@village.org) wrote:
|> In article <3vo9lr$los@metro.ucc.su.oz.au>,
|> John Max Skaller <maxtal@Physics.usyd.edu.au> wrote:
|> >	It isn't clear it is POSSIBLE to use qsort.
|> >Suppose extern "C" functions use a DIFFERENT calling convention.

|> This sounds like another of the committee's unwise calls.  I do
|> understand the issues behind it, however, there is some legacy code
|> that depends on being able to call qsort from C++.

|> >	Result: qsort may not be useable: it has to be there,
|> >it doesn't have to be useful. You certainly can't assume at this
|> >point in time any use of it will be portable. The final Standard
|> >might provide better guarrantees, but I have doubts.

|> This is the part that worries me the most.  Traditionally, you've been
|> able to do this, and as far as I know it works on all existing
|> compilers (at least the major ones I've used).  Breaking this now
|> isn't the best possible service that the committee could do to the
|> application developers (although it does let the compiler writers off
|> the hook more easily).

It wasn't supported by the Zortech compilers under MS-DOS.  C and C++
used different linkage conventions.
-- 
James Kanze           (+33) 88 14 49 00          email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
Conseils en informatique industrielle--
                             --Beratung in industrieller Datenverarbeitung
Technical Details
Message-ID: <404vtq$2fp@gabi.gabi-soft.fr>
Path: arc1-ca.pugleaf.net!gabi-soft.fr!not-for-mail
References: <bill_law-1807951030140001@bill-law.taligent.com> <3v011l$d69@godzilla.zeta.org.au> <KANZE.95Jul25103036@slsvhdt.lts.sel.alcatel.de> <3vo9lr$los@metro.ucc.su.oz.au> <3vsaaj$1gs@rover.village.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!gabi-soft.fr!not-for-mail
From: kanze@gabi-soft.fr (J. Kanze)
Newsgroups: comp.std.c++
Subject: Re: Linkage revisited
Date: 7 Aug 1995 14:11:38 +0200
Organization: GABI Software, Sarl.
Distribution: inet
Message-ID: <404vtq$2fp@gabi.gabi-soft.fr>
References: <bill_law-1807951030140001@bill-law.taligent.com> <3v011l$d69@godzilla.zeta.org.au> <KANZE.95Jul25103036@slsvhdt.lts.sel.alcatel.de> <3vo9lr$los@metro.ucc.su.oz.au> <3vsaaj$1gs@rover.village.org>
NNTP-Posting-Host: gabi.gabi-soft.fr
X-Newsreader: TIN [version 1.2 PL2]