What Does @ Mean?
wjoe
fake at example.com
Fri Apr 12 10:01:40 UTC 2019
On Monday, 8 April 2019 at 12:16:13 UTC, Adam D. Ruppe wrote:
> On Monday, 8 April 2019 at 11:58:49 UTC, Ron Tarrant wrote:
>> And while I'm asking, does an underscore have special meaning
>> when used either at the beginning or end of a variable name?
>
> Nothing special there, you are allowed to use the _ anywhere in
> a name. Some people use it as a convention on private members,
> unused members, or keyword conflicts (like `body_` so the
> compiler doesn't see it as the keyword `body`).
>
It's not entirely related but another use of the underscore is to
make integers more readable. E.g.:
int x = 1_000_000_000_000;
More information about the Digitalmars-d-learn
mailing list