D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17939 - extern(C) function support with non-C attributes/types should be documented
Summary: extern(C) function support with non-C attributes/types should be documented
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords: spec
Depends on:
Blocks:
 
Reported: 2017-10-26 12:04 UTC by Steven Schveighoffer
Modified: 2024-12-15 15:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Steven Schveighoffer 2017-10-26 12:04:15 UTC
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 Martin Nowak 2017-10-26 12:43:29 UTC
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 dlangBugzillaToGithub 2024-12-15 15:24:22 UTC
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