www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16335] New: Thread constructor accepts a delegate with

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

          Issue ID: 16335
           Summary: Thread constructor accepts a delegate with nonshared
                    context
           Product: D
           Version: D2
          Hardware: All
               URL: https://dlang.org/phobos/core_thread.html#.Thread.this
                    .2
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: dfj1esp02 sneakemail.com

This allows implicit data sharing. Also looks like Semaphore tests rely on this
behavior: https://forum.dlang.org/post/aswqyosonizpnpysnnwx forum.dlang.org

--
Jul 29 2016