What does 'scope' mean for non-class types?

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Sat May 29 10:53:25 PDT 2010


In D2, what is the effect (if any) of 'scope' in the following situations?

  scope int a;

  struct B { ... }
  scope B b;

  scope int[] c;

  // According to the spec, 'in' is shorthand for 'const scope'.
  void foo(in char[] d) { ... }


Thanks,
-Lars


More information about the Digitalmars-d-learn mailing list