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.
Comment #1 by yao.gomez — 2012-02-06T19:36:47Z
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.
Comment #2 by yao.gomez — 2012-02-18T09:32:07Z