Re: struct / typedef confusion



In article <f3hedp$rtn$1@xxxxxxxxxxxxxxxx>,
Guillaume Dargaud <use_the_form_on_my_contact_page@xxxxxxxxxxxxxxxx> wrote:

Still, isn't there a contradiction in having both a struct and a typedef
with the same name ?

No, C has a few different "name spaces", with a usage in one
name space not conflicting with the usage in another name space.
For example, statement labels don't conflict with ordinary
identifiers. In 30 seconds reading of C89 I'm left uncertain
exactly which name space is used for typedefs, but the
tags of structures, unions, and enumerations are specifically
noted as being disambiguated by the presence of the
'struct', 'union' or 'enum' tag.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
.



Relevant Pages

  • Re: semantic of some lisp words
    ... Note the use of what is essentially a "trailing let" with "where": Perl is the only language I know of which has features reminiscent of that construct, which is quite common usage in English. ... The suggestion someone else posted that it originated as shorthand for (prog nil ...) is interesting, though in CL the semantics of the two are very different (prog allows the traditional admixture of tags & (go tag), progn does not, thankfully). ...
    (comp.lang.lisp)
  • Re: english words absorbed into Asian languages during WW2
    ... >>> asked do not regard the American usage as conflicting with their ... we just mean that we are far from what we regard as ...
    (sci.lang)
  • Re: struct / typedef confusion
    ... name space not conflicting with the usage in another name space. ... The 'ordinary identifier' namespace, which also contains ... objects, functions, and enum constants. ...
    (comp.lang.c)
  • Re: english words absorbed into Asian languages during WW2
    ... >> asked do not regard the American usage as conflicting with their usage, ... It is no accident that "hillbillies" live there. ...
    (sci.lang)