[Issue 4778] New: www.d-programming-language.org "Interfacing to C" says "There are no const or volatile type modifiers in D"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 31 21:44:56 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4778

           Summary: www.d-programming-language.org "Interfacing to C" says
                    "There are no const or volatile type modifiers in D"
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: cruxic at gmail.com


--- Comment #0 from AdamB <cruxic at gmail.com> 2010-08-31 21:44:43 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list