🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4080

Re: Function-prototype scope: Why?

#4080
From: Tanmoy Bhattacharya
Date: Fri, 22 Sep 1995 14:15
24 lines
1746 bytes
In article <43s7k4$j2v@gatekeeper.atml.co.uk>, jrr@atml.co.uk (John Rickard)
writes: 
|> Stan Ryckman (sgr@ae-sun01.alden.com) wrote:
|> : All pointers-to-struct must have the same "shape"
|> 
|> Is that so?  I've often written code that makes that assumption, but I
|> can't find any justification for it in the standard.  Can you give
|> references?

I think the statement is strictly true only if one makes the assumption that
the linkers are not incredibly smart. All proofs I have seen are based on
translation units containing incomplete struct pointers (which, by the way
are not incomplete types): and in the absence of smart linkers, all struct
pointers need to be the same shape for things to work.

Cheers
Tanmoy
-- 
tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87544-0285,USA H:#3,802,9 St,NM87545
Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
<http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
Technical Details
Message-ID: <43ugdt$ihe@newshost.lanl.gov>
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy
References: <43cgmb$cec@news0.rain.rg.net> <43er80$458@caip.rutgers.edu> <43pdgk$b3i@rdsunx.crd.ge.com> <43qjdk$loj@caip.rutgers.edu> <43qod5$clf@ae-sun01.alden.com> <43s7k4$j2v@gatekeeper.atml.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy
From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
Newsgroups: comp.std.c
Subject: Re: Function-prototype scope: Why?
Date: 22 Sep 1995 14:15:25 GMT
Organization: Los Alamos National Laboratory
Distribution: world
Message-ID: <43ugdt$ihe@newshost.lanl.gov>
References: <43cgmb$cec@news0.rain.rg.net> <43er80$458@caip.rutgers.edu> <43pdgk$b3i@rdsunx.crd.ge.com> <43qjdk$loj@caip.rutgers.edu> <43qod5$clf@ae-sun01.alden.com> <43s7k4$j2v@gatekeeper.atml.co.uk>
NNTP-Posting-Host: qcd.lanl.gov