On Wed, 03 Sep 2014 19:53:15 +0000
nrgyzer via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
wrote:

__gshared class members are effectively "static", i.e. they are "class
members", not "instance members".

i.e.

class Entry {
  __gshared int value;
  ...
  static int getValue () { return value; }
}

works ok.

you have only one 'value' variable for all your instances.

Attachment: signature.asc
Description: PGP signature

Reply via email to