Liste des Groupes | Revenir à cl c |
Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> writes:Annada Behera wrote:>If 'this->' were not optional, 'this->i' would clarify that.
To avoid confusion, many C++ programmers use prefixes like 'm_' that
can't be ignored.
Such prefixes for structure (class) members date back to the
earliest C compilers, where structure member names were first-class
symbols, unqualified by the structure name (any member name could
be used with any pointer regardless of pointer type). Thus some
means was necessary to disambiguate member names. Remnants of
that still exist in POSIX (e.g. the field names for struct stat
all start with "st_").
Les messages affichés proviennent d'usenet.