www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - 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
Aug 13 2004