January 31, 2004 [Docs] Missing new operator | ||||
---|---|---|---|---|
| ||||
http://www.digitalmars.com/d/attribute.html, [cited 31.01.04] In Section `Static Attribute': <cite> class Foo { static int bar() { return 6; } int foobar() { return 7; } } ... Foo f; Foo.bar(); // produces 6 Foo.foobar(); // error, no instance of Foo f.bar(); // produces 6; f.foobar(); // produces 7; </cite> Change to: [...] Foo f = new Foo; [...] So long. |
February 02, 2004 Re: [Docs] Missing new operator | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manfred Nowak | Done. Thanks, -Walter |
Copyright © 1999-2021 by the D Language Foundation