D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16453 - Missing @nogc annotations
Summary: Missing @nogc annotations
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 major
Assignee: No Owner
URL: http://dlang.org/
Keywords: trivial
Depends on:
Blocks:
 
Reported: 2016-08-31 15:42 UTC by Eyal
Modified: 2017-02-22 16:00 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Eyal 2016-08-31 15:42:13 UTC
core.thread functions are not marked @nogc

For example: thread_isMainThread
Comment 1 Seb 2016-12-27 13:05:56 UTC
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 Jack Stouffer 2017-02-22 16:00:37 UTC
Several functions in core.thread are now marked @nogc. If you have other specific functions in mind, please make other issues for them.