D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4778 - www.d-programming-language.org "Interfacing to C" says "There are no const or volatile type modifiers in D"
Summary: www.d-programming-language.org "Interfacing to C" says "There are no const or...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2010-08-31 21:44 UTC by AdamB
Modified: 2012-02-18 09:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description AdamB 2010-08-31 21:44:43 UTC
This page http://www.d-programming-language.org/interfaceToC.html states:

"There are no const or volatile type modifiers in D. To declare a C function that uses those type modifiers, just drop those keywords from the declaration."

Is this still true in D 2.0?  There's a whole section in the Language Reference about the "const" keyword and the compiler seems to accept it when creating C bindings.
Comment 1 Yao Gomez 2012-02-06 19:36:47 UTC
pull https://github.com/D-Programming-Language/d-programming-language.org/pull/77

This removes the mention to const, but I left volatile, as it's deprecated and I see no point of mentioning that. Of course this can be changed.