digitalmars.D.learn - void as Initializer?
- Russ Lewis (3/3) Jul 14 2005 What does this declaration mean?
- David Medlock (3/6) Jul 14 2005 I believe it means do not initialize the buffer.
- Stefan (5/8) Jul 14 2005 It's documented here:
- Russ Lewis (2/17) Jul 17 2005 Cool, thanks for the pointer to the official answer!
What does this declaration mean? char[uint.sizeof * 3] buffer = void; (taken from std.string, line 2049, in dmd 0.128)
Jul 14 2005
Russ Lewis wrote:What does this declaration mean? char[uint.sizeof * 3] buffer = void; (taken from std.string, line 2049, in dmd 0.128)I believe it means do not initialize the buffer. Its an optimization.
Jul 14 2005
In article <db5v7u$2thc$1 digitaldaemon.com>, Russ Lewis says...What does this declaration mean? char[uint.sizeof * 3] buffer = void; (taken from std.string, line 2049, in dmd 0.128)It's documented here: http://www.digitalmars.com/d/memory.html#uninitializedarrays Best regards, Stefan
Jul 14 2005
Stefan wrote:In article <db5v7u$2thc$1 digitaldaemon.com>, Russ Lewis says...Cool, thanks for the pointer to the official answer!What does this declaration mean? char[uint.sizeof * 3] buffer = void; (taken from std.string, line 2049, in dmd 0.128)It's documented here: http://www.digitalmars.com/d/memory.html#uninitializedarrays Best regards, Stefan
Jul 17 2005