scope as storage class
Namespace
rswhite4 at googlemail.com
Thu Sep 27 04:49:31 PDT 2012
What is the correct use of scope as storage class?
int counter;
void foo(scope int a) {
counter = a;
}
void main() {
int num = 42;
foo(num);
}
More information about the Digitalmars-d-learn
mailing list