March 01 [Issue 24425] @standalone attribute should be usable on thread-local static constructors and all static destructors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24425 Steven Schveighoffer <schveiguy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|@standalone attribute |@standalone attribute |should be usable on |should be usable on |thread-local static |thread-local static |constructors |constructors and all static | |destructors -- |
March 01 [Issue 24425] @standalone attribute should be usable on thread-local static constructors and all static destructors | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24425 --- Comment #1 from Steven Schveighoffer <schveiguy@gmail.com> --- Static destructors can also benefit from being marked standalone, though the use case isn't as compelling. However, there is no reason to disallow it. A standalone destructor would be run last when sorting ctors/dtors (this naturally already happens). -- |
Copyright © 1999-2021 by the D Language Foundation