Not initialized out argument error

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 17 06:27:16 PDT 2014


On 06/17/2014 02:02 AM, Walter Bright wrote:
> On 6/16/2014 3:51 PM, bearophile wrote:
>> test.d(1,21): Error: uninitialised out argument of 'test3.foo' function
>
> But it is not uninitialized. All out parameters are default initialized
> to their .init value.

struct S{ @disable this(); }

void foo(out S s){} // ?


More information about the Digitalmars-d mailing list