D1->D2 member call syntax regression?

Nick Sabalausky a at a.a
Tue Jul 27 16:25:28 PDT 2010


In converting some D1 code to D2, I noticed this doesn't seem to work 
anymore:

module mymodule;
class Foo()
{
    void bar(string s) {...}

    void foo()
    {
        string str = "hello";
        str.bar();
    }
}

In D1 that works fine, but in D2 (2.047) it complains that it can't find 
"mymodule.bar". That's a bit dissapointing, as I keep hoping member call 
syntax will eventually get expanded, not reduced. Is this a bug, or is there 
some reason for it?




More information about the Digitalmars-d-learn mailing list