One document about Go

Walter Bright newshound1 at digitalmars.com
Tue Jun 1 14:31:47 PDT 2010


bearophile wrote:
> D language
> isn't even able to tell if an "out" argument has being used before it is
> assigned inside the function (as C# compiler is able to, because in C# using
> uninitialized variables is an error
) This is awful and surely worse than
> multiple return values.


That's a misunderstanding of how "out" parameters work in D. All out parameters 
are default initialized upon entry to the function. Therefore, the user cannot 
access an uninitialized out parameter.


More information about the Digitalmars-d mailing list