[Issue 9992] Default argument from member variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 21 08:43:25 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=9992



--- Comment #3 from yebblies <yebblies at gmail.com> 2013-11-22 03:43:23 EST ---
Hmm, this doesn't work either.

class Foo
{
    int a = 0;

    void bar(int x = a)
    {
    }
    void baz()
    {
        bar();
    }
}

void main()
{
    Foo f = new Foo();
    //f.bar();   -> does not complain with this commented out
}

They probably should be banned.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list