_Symbols _with _leading _underscores
user1234
user1234 at 12.de
Sat Dec 17 03:04:56 UTC 2022
On Saturday, 17 December 2022 at 02:42:22 UTC, Paul wrote:
> I see code like this from time to time. Are the leading
> underscores significant, in general, in the D language? Is it
> just programmer preference? Is it a coding practice, in
> general, that is common...even outside of D? Thanks for any
> assistance.
The only important thing you should know about is that doubly
leading underscores are reserved for symbols generated by the D
front-end, so you should avoid them. This is specified here:
https://dlang.org/spec/lex.html#identifiers.
More information about the Digitalmars-d-learn
mailing list