🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4622

Re: Correction to SUMMARY: extern and static question

#4622
From: Stan Ryckman
Date: Fri, 12 Jan 1996 21:25
21 lines
1121 bytes
In article <ahicksDKrIDs.62H@netcom.com>,
Aaron Hicks at Netcom <ahicks@netcom.com> wrote:
>In my original summary I wrote:
>>So a static in a function can be an extern for another module but a global 
>>static can not be seen from other modules.
>
>This should have be:
>This should say that a static can not be seen from another module. 

I don't have the whole context here (was away from Usenet for a bit)
but:

The "name" of a static cannot be seen from another module; however,
the variable itself can (by, for example, returning its address from
a function, or by storing that address in an extern variable, or by
calling a function in another module with its address).

Cheers,
Stan.
--
Stan Ryckman  (stanr@tiac.net) (new e-mail address)
Technical Details
Message-ID: <4d6jjj$hvk@sundog.tiac.net>
Path: arc1-ca.pugleaf.net!sundog.tiac.net!stanr
References: <ahicksDKrIDs.62H@netcom.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sundog.tiac.net!stanr
From: stanr@tiac.net (Stan Ryckman)
Newsgroups: comp.std.c
Subject: Re: Correction to SUMMARY: extern and static question
Date: 12 Jan 1996 21:25:06 GMT
Organization: The Internet Access Company
Message-ID: <4d6jjj$hvk@sundog.tiac.net>
References: <ahicksDKrIDs.62H@netcom.com>
NNTP-Posting-Host: sunspot.tiac.net