Bug 16453 – Missing @nogc annotations

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-31T15:42:00Z
Last change time
2017-02-22T16:00:37Z
Keywords
trivial
Assigned to
nobody
Creator
eyal

Comments

Comment #0 by eyal — 2016-08-31T15:42:13Z
core.thread functions are not marked @nogc For example: thread_isMainThread
Comment #1 by greeenify — 2016-12-27T13:05:56Z
Hmm due to Thread being a class the compiler thinks it can't be @nogc, so as a workaround sth. like `assumeNogc` could be it used. See e.g: https://github.com/nordlow/phobos-next/blob/master/src/dbgio.d#L13
Comment #2 by jack — 2017-02-22T16:00:37Z
Several functions in core.thread are now marked @nogc. If you have other specific functions in mind, please make other issues for them.