Article View: comp.std.c
Article #5570Re: scope of a structure tag
From: Doug Gwyn
Date: Tue, 10 Jan 1989 18:23
Date: Tue, 10 Jan 1989 18:23
12 lines
921 bytes
921 bytes
In article <18915@agate.BERKELEY.EDU> holub@violet.berkeley.edu () writes:
>Does the scope of a structure tag extend from the point of declaration to
>the end of the current compound statement or whatever (as I suspect) or
>can you define substructures with identical tags but different fields?
Structure tags have file, block, or (with ANSI C) prototype scope,
depending on where they occur. The {} in a structure declaration
do not delimit a block.
>Is my assumption correct?
Yes.
Technical Details
Message-ID:
<9327@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!haven!adm!smoke!gwynReferences:
<18915@agate.BERKELEY.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.std.c Subject: Re: scope of a structure tag Keywords: scope structure tag Message-ID: <9327@smoke.BRL.MIL> Date: 10 Jan 89 18:23:09 GMT References: <18915@agate.BERKELEY.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12