How to pass a class by (const) reference to C++

Adam Ruppe destructionator at gmail.com
Wed Dec 15 22:29:27 UTC 2021


On Wednesday, 15 December 2021 at 22:24:42 UTC, H. S. Teoh wrote:
> `__gshared` is needed to coax the compiler into making the 
> variable global in the C/C++ sense, i.e., only 1 instance 
> across all threads.


it is just normally __gshared implies static automatically. it 
does in like every other context but i guess not in the mangler 
or whatever.


More information about the Digitalmars-d-learn mailing list