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

bachmeier no at spam.net
Fri Mar 31 19:43:42 UTC 2023


On Friday, 31 March 2023 at 16:26:36 UTC, ryuukk_ wrote:

> I disagree, global mutables are not bad
>
> That the same bad advice as telling people to "embrace OOP and 
> multiple inheritance" and all the Java BS
>
> "just put your variable into a class and make it static, and 
> then have your singleton to access your static variables"

Those of us that have been scarred by reading FORTRAN 77 code 
would disagree. I use global mutables myself (and even the 
occasional goto), but if anything, it should be 
`__GLOBAL_MUTABLE_VARIABLE` to increase the pain of using them.


More information about the Digitalmars-d-learn mailing list