is there any trait to check if variable is __gshared?
Steven Schveighoffer
schveiguy at yahoo.com
Wed Mar 26 19:47:21 PDT 2014
On Wed, 26 Mar 2014 11:52:29 -0400, ketmar
<nobodyherethismailsucks at gmail.com> wrote:
> i think that '__gshared' should be part of type info, just like 'shared'
> is. variable can't be both 'shared' and '__gshared' anyway.
The point of __gshared is it's an override of the type info. There are
some cases where you need shared data, but you don't want the type system
to know that. Usually it's for "safety checks off" code.
-Steve
More information about the Digitalmars-d-learn
mailing list