Bug 10107 – Allow to store "newed" class and struct instances in TLS

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-17T08:59:44Z
Last change time
2024-12-13T18:06:54Z
Keywords
CTFE
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18582 →

Comments

Comment #0 by code — 2013-05-17T08:59:44Z
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
Comment #1 by wazar.leollone — 2013-05-17T16:34:34Z
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
Comment #2 by robert.schadek — 2024-12-13T18:06:54Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18582 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB