Liste des Groupes | Revenir à cl c |
Anton Shepelev:David Brown:>
>The limited support for avoiding name clashes in C>
(user-level C, outside of the implementation
internals) is certainly something that he (or others)
/could/ complain about. It is a well-known issue, and
it's a shame that the C standards committee have never
dealt with it. I don't see why the language could not
adopt a simple "namespace" solution that would hugely
simplify avoiding identifier clashes. (It wouldn't
help for macros, but we have inline functions to
handle many cases.)
My hypothetical solution is to have a single function
returning a struct with pointers to all the public
functions of a module.
What stops that function name clashing with the single
function exported from other people's modules?
Les messages affichés proviennent d'usenet.