www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 58] New: C/C++ bool to D bool conversion

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=58

           Summary: C/C++ bool to D bool conversion
           Product: D
           Version: unspecified
          Platform: All
               URL: http://www.digitalmars.com/d/htomodule.html
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: afb algonet.se


The size of a "bool" in C / C++ is not defined,
so the documentation for D should reflect this:

Mapping C type to D type

C type  D type
bool    byte or int

Both sizes are being used on Mac OS X for instance,
PPC uses "int" (4 bytes) while PPC64 uses "byte"...


-- 
Mar 20 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=58


deewiant gmail.com changed:

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




-- 
Apr 03 2006