extern(C) bool function type?

Charles Hixson charleshixsn at earthlink.net
Thu Sep 26 11:56:02 PDT 2013


Does anyone know:
If an extern(c) function is defined as returning a bool, does D handle 
the conversion automatically into true and false?  Should it be defined 
as returning  an int?  On a 64 bit machine?  Does this depend on the 
compiler used to compile the library?  int32_t? int_64_t?

Is this portable or non-portable?

-- 
Charles Hixson



More information about the Digitalmars-d-learn mailing list