🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38347

Re: C++ and callbacks

#38347
From: Jason Merrill
Date: Fri, 06 May 1994 00:34
11 lines
1756 bytes
>>>>> Brandon Van Every <brandon@uncvx2.oit.unc.edu> writes:

> I can't find anything in Stroustrup that says this will work.  The default
> linkage for all functions is "C++" (p. 524).  Given that, I'd say that not
> using "extern C" is rather risky.

But does anything say that it won't?  C and C++ use the same calling
convention for plain functions, so C linkage v. C++ should have no effect
on function pointers.

Jason
Technical Details
Message-ID: <JASON.94May5173436@deneb.cygnus.com>
Path: arc1-ca.pugleaf.net!gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!emory!news-feed-2.peachnet.edu!news-feed-1.peachnet.edu!news.duke.edu!MathWorks.Com!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gumby!yale!yale.edu!noc.near.net!cambridge-news.cygnus.com!majipoor.cygnus.com!news!jason
References: <pauld.767898877@sarge> <2q65gv$oln@bigblue.oit.unc.edu> <2q67fpINNgv5@eccdb1.pms.ford.com> <2q9v55$ted@bigblue.oit.unc.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103734,ad5a39011a2d3d26
X-Google-Attributes: gid103734,public
X-Google-Thread: 109fba,ad5a39011a2d3d26
X-Google-Attributes: gid109fba,public
X-Google-Thread: 10ba33,ad5a39011a2d3d26
X-Google-Attributes: gid10ba33,public
X-Google-ArrivalTime: 1994-05-08 09:29:40 PST
Newsgroups: comp.windows.x,comp.lang.c++,gnu.g++.help
Path: arc1-ca.pugleaf.net!gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!emory!news-feed-2.peachnet.edu!news-feed-1.peachnet.edu!news.duke.edu!MathWorks.Com!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gumby!yale!yale.edu!noc.near.net!cambridge-news.cygnus.com!majipoor.cygnus.com!news!jason
From: jason@cygnus.com (Jason Merrill)
Subject: Re: C++ and callbacks
In-Reply-To: brandon@uncvx2.oit.unc.edu's message of 5 May 1994 05:11:01 GMT
Content-Type: text/plain; charset=US-ASCII
Message-ID: <JASON.94May5173436@deneb.cygnus.com>
Followup-To: comp.windows.x,comp.lang.c++,gnu.g++.help
Sender: news@cygnus.com
Nntp-Posting-Host: deneb.cygnus.com
Organization: Cygnus Support, Mountain View, CA
References: <pauld.767898877@sarge> <2q65gv$oln@bigblue.oit.unc.edu>
 <2q67fpINNgv5@eccdb1.pms.ford.com> <2q9v55$ted@bigblue.oit.unc.edu>
Mime-Version: 1.0
Date: Fri, 6 May 1994 00:34:36 GMT
Lines: 11