www.digitalmars.com         C & C++   DMDScript  

D - overloading functions with out parameters

reply "Pavel Minayev" <evilone omen.ru> writes:
It doesn't work sometimes. Just try to compile this:

    class X { }

    class A
    {
     X B(X x, out int i) { i = 666; return new X; }
     X B(X x)            { int i; return B(x, i); }
    }
Jan 06 2002
parent "Walter" <walter digitalmars.com> writes:
The fix for this will go out in the next update. -Walter

"Pavel Minayev" <evilone omen.ru> wrote in message
news:a19o11$2ji3$1 digitaldaemon.com...
 It doesn't work sometimes. Just try to compile this:

     class X { }

     class A
     {
      X B(X x, out int i) { i = 666; return new X; }
      X B(X x)            { int i; return B(x, i); }
     }

Jan 10 2002