August 13, 2004 stray static attribute | ||||
---|---|---|---|---|
| ||||
Quote from "dmd/html/d/attribute.html":
> The static attribute applies to functions and data.
> It means that the declaration does not apply to a
> particular instance of an object, but to the type
> of the object.
<< << sniplet 1 >> >>
static int check;
<< << sniplet 2 >> >>
static int check(){
return 0;
}
Both declarations are not inside of a struct/class.
Thomas
|
Copyright © 1999-2021 by the D Language Foundation