Liste des Groupes | Revenir à cl c |
David Brown:What stops that function name clashing with the single function exported from other people's modules?
The limited support for avoiding name clashes in C (user-My hypothetical solution is to have a single function
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.)
returning a struct with pointers to all the public functions
of a module.
Les messages affichés proviennent d'usenet.