Ok, I understand your point.
Julien
----- Message d’origine ----De : KHMan
? : A list for developers using the SDL library. (includes SDL-announce)
Envoy? le : Mercredi, 18 Juin 2008, 13h50mn 15s
Objet : Re: [SDL] Underscores as prefixes/suffixes
julien CLEMENT wrote:
Hello again,
Well I’ve discussed that problem of underscores with some other developers,
and they think, like me, that it should not be a problem to use
underscores in this way.
I’m used to prefix static functions with a double underscore, even
private members of
C++ classes (or Java classes as well).
I’m dubious about the fact that using underscores as prefixes and
suffixes of functions/variables/fields
should collide in any way with the compiler. It generates random
suffixes for its internal strings,
I doubt there is a probability to be in conflict with it.
I’m not an expert, just echoing Ulrich Eckhardt’s opinion. You can
see the reason behind our view by downloading the ISO C draft,
say, version n1256 (it’s probably n1256.pdf, something like that)
and see section 7.1.3, page 178, on “Reserved identifiers”. This
section is with respect to standard libraries provided by a C
implementation.
Obviously, you can ignore ISO C and things will still be just fine
if no identifiers collide now or in the future.
–
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr