[Issue 2159] Confusion between function call and C++ style function address

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 15 14:32:43 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=2159

Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |dmitry.olsh at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #8 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
import core.thread;

void main()
{
        int g;
        int run()
        {
                for(int i = 0; i < 1000; ++i)
                        ++g;
                return 0;
        }
        auto t = new Thread(run);
        t.start;
        t.wait;
}

Now it doesn't fail and I fail to see how we fix the general since optional
parens became a thing after UFCS was finally fully implemented.

--


More information about the Digitalmars-d-bugs mailing list