May 17, 2013 [Issue 10107] New: Allow to store "newed" class and struct instances in TLS | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10107 Summary: Allow to store "newed" class and struct instances in TLS Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: code@dawg.eu --- Comment #0 from Martin Nowak <code@dawg.eu> 2013-05-17 08:59:44 PDT --- class Foo { } Foo foo = new Foo(); ---- This is a followup of bug 9941. NB: https://github.com/D-Programming-Language/dmd/pull/1724#issuecomment-15456975 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 17, 2013 [Issue 10107] Allow to store "newed" class and struct instances in TLS | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | http://d.puremagic.com/issues/show_bug.cgi?id=10107 Igor Stepanov <wazar.leollone@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wazar.leollone@yahoo.com --- Comment #1 from Igor Stepanov <wazar.leollone@yahoo.com> 2013-05-17 16:34:34 PDT --- Same http://d.puremagic.com/issues/show_bug.cgi?id=10108 I think. This is conceptual question: Can reference types be thread local? If we'll find the way: we can do class literals, array literals and pointers thread local. By the way: int* global_ptr = [1,2,3].ptr; //same trouble I think, we must reject all mutable non-shared reference literals. And move to reject all non-mutable literals -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation