🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Pointer comparisons

#1128
From: Scott Turner
Date: Mon, 21 Dec 1992 18:18
19 lines
1399 bytes
In article <1gt9qjINNsrr@darkstar.UCSC.EDU>, daniel@cse.ucsc.edu (Daniel R. Edelson) writes:
> There's also a problem regarding inline functions.
> Specifically, under common file-based C++ implementations, 
> the address of an inline function  can vary between
> compilation units. Thus, the requirement from
> Ansi C (Sec 3.3.9)
> 	``If two pointers to function types ... both point to
> 	the same function, they compare equal.''
> is false under common C++ implementations.

An inline function (such as you speak of) has internal linkage.
Its definition is in the header file, so internal linkage implies
that there is a different function in each compilation unit.
The requirement from standard C is honored.
--
Prescott K. Turner, Jr.
Liant Software Corp. (developers of LPI languages)
959 Concord St., Framingham, MA 01701 USA    (508) 872-8700
UUCP: uunet!lpi!pkt                          Internet: pkt@lpi.liant.com
Technical Details
Message-ID: <1992Dec21.181808.7343@lpi.liant.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!titan!lpi!pkt
References: <BzDs2x.wA@frumious.uucp> <1992Dec17.151642.9954@bcrka451.bnr.ca> <1992Dec18.181029.1061@taumet.com> <1gt9qjINNsrr@darkstar.UCSC.EDU>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!titan!lpi!pkt
From: pkt@lpi.liant.com (Scott Turner)
Subject: Re: Pointer comparisons
Message-ID: <1992Dec21.181808.7343@lpi.liant.com>
Sender: pkt@lpi (Scott Turner)
Organization: Liant Software Corporation
References: <BzDs2x.wA@frumious.uucp> <1992Dec17.151642.9954@bcrka451.bnr.ca> <1992Dec18.181029.1061@taumet.com> <1gt9qjINNsrr@darkstar.UCSC.EDU>
Date: Mon, 21 Dec 1992 18:18:08 GMT
Lines: 20