Bug 13752 – add traits to query storage class of variables (isTLS, isGlobal)

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-19T13:40:05Z
Last change time
2024-12-13T18:36:03Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18916 →

Comments

Comment #0 by code — 2014-11-19T13:40:05Z
Knowing whether a variable is thread-local (TLS) sometimes allows to leave-out otherwise necessary synchronization. Currently it's extremely hacky to infer this, so a isTLS trait would be helpful. It might also make sense to add the complements isGlobal and isLocal. http://dpaste.dzfl.pl/ed0b271d434b
Comment #1 by pro.mathias.lang — 2020-08-04T03:45:07Z
*** Issue 12474 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-13T18:36:03Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18916 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB