An alternative to .init
Manfred_Nowak
svv1999 at hotmail.com
Thu Sep 11 04:33:19 PDT 2008
Brad Roberts wrote:
> That just means don't initialize
I know what the semantics of `T= void' is supposed to be, but your
remark is only a result of Walters overloading of meanings to keywords.
It does not change the fact, that for all types _one_ more possibility
exists to (not)initialize it, than it has legal values.
If there is one more possibility, then there are many more; including
the possibility, that the initial value is in fact `void', i.e. illegal
as an rvalue.
See
http://www.digitalmars.com/webnews/newsgroups.php?
art_group=digitalmars.D.bugs&article_id=15041
for an example that, D in fact uses `void' as an initilization value.
-manfred
--
If life is going to exist in this Universe, then the one thing it
cannot afford to have is a sense of proportion. (Douglas Adams)
More information about the Digitalmars-d-announce
mailing list