Why are globals set to tls by default? and why is fast code ugly by default?

Dennis dkorpel at gmail.com
Fri Mar 31 16:02:35 UTC 2023


On Friday, 31 March 2023 at 15:52:21 UTC, ryuukk_ wrote:
> the point i bring is ``__gshared`` is ugly, so we want an ugly 
> language?

Good code shouldn't look ugly, but global mutable variables are 
bad, so it's appropriate that they look ugly.

You can still put a single `__gshared:` at the top of your module.



More information about the Digitalmars-d-learn mailing list