digitalmars.D.bugs - stray static attribute
- Thomas Kuehne (9/13) Aug 13 2004 << << sniplet 1 >> >>
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