Bug 17939 – extern(C) function support with non-C attributes/types should be documented

Status
NEW
Severity
enhancement
Priority
P4
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-10-26T12:04:15Z
Last change time
2024-12-15T15:24:22Z
Keywords
spec
Assigned to
No Owner
Creator
Steven Schveighoffer
See also
https://issues.dlang.org/show_bug.cgi?id=7854
Moved to GitHub: dlang.org#3966 →

Comments

Comment #0 by schveiguy — 2017-10-26T12:04:15Z
In issue 7854, Walter says that allowing non-C attributes in extern(C) function parameters is a "feature": https://issues.dlang.org/show_bug.cgi?id=7854#c15 Therefore, I'm opening this enhancement request for making the spec reflect definitively how this feature works. I think a clear explanation will help compiler developers, and will help users understand what actually happens. See also Walter's PR that uses this feature: https://github.com/dlang/druntime/pull/1917
Comment #1 by code — 2017-10-26T12:43:29Z
On one hand it's definitely a requirement to attribute C functions, so that root primitives have correct attributes and people can actually write attribute correct code using those.
Comment #2 by robert.schadek — 2024-12-15T15:24:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/3966 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB