D - [Docs] Missing new operator
- Manfred Nowak (20/20) Jan 30 2004 http://www.digitalmars.com/d/attribute.html, [cited 31.01.04]
- Walter (1/1) Feb 02 2004 Done. Thanks, -Walter
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.
Jan 30 2004