On 2012-09-28, fir <> wrote:
>
> I want to say:
>
> external linkage symbols should not be
> treated as global to all module set
> - this is bug
No, it is not a bug. A bug is where something does not work as
intended. That is not the case here: it is working as intended,
you simply want it to do something than was originally intended.
Other languages give different mechnisms to achieve what you attempt
whether it be namespaces or protected scope or something else that
doesn't immediately come to mind - but the fact C doesn't offer
them is at worst a limitation rather than a bug.
C's scoping rules are relatively simple which is a good fit for
the rest of the language. Adding this kind of capability would
inevitably involve the addition of extra red tape, the comparative
lack of which is one of the nicer things about C in the first place.
--
Andrew Smallshaw