Bug 4778 – www.d-programming-language.org "Interfacing to C" says "There are no const or volatile type modifiers in D"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-08-31T21:44:00Z
Last change time
2012-02-18T09:32:07Z
Keywords
pull
Assigned to
nobody
Creator
cruxic
Comments
Comment #0 by cruxic — 2010-08-31T21:44:43Z
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.