www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: cruxic gmail.com


--- Comment #0 from AdamB <cruxic 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: -------
Aug 31 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4778


Yao Gomez <yao.gomez gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |yao.gomez gmail.com


--- Comment #1 from Yao Gomez <yao.gomez gmail.com> 2012-02-06 19:36:47 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 06 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4778


Yao Gomez <yao.gomez gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Yao Gomez <yao.gomez gmail.com> 2012-02-18 09:32:07 PST ---
Patch merged:
https://github.com/D-Programming-Language/d-programming-language.org/commit/cb5eca74d7ac212d87e261c9a9235feca5e85533

Closing this puppy.

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