[Issue 2159] Confusion between function call and C++ style function address
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Oct 10 14:26:37 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=2159
RazvanN <razvan.nitu1305 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com
--- Comment #10 from RazvanN <razvan.nitu1305 at gmail.com> ---
Compiling:
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;
}
Yields:
test.d(11): Error: class core.thread.Thread member this is not accessible
test.d(13): Error: no property wait for type core.thread.Thread
Is this satisfactory?
--
    
    
More information about the Digitalmars-d-bugs
mailing list