On 2017-08-26 02:50, Michael Van Canneyt wrote:
I thought all this BOOL mess was just meant to be able to interface with C
libs slightly easier.

But, why is the BOOL in fpc/delphi not compatible with C BOOL, in that it has different semantics?

One value lines up correct... but not always the other.

Why borland chose the bool to not be 100 percent compatible, and only 50 percent compatible?

Bool in delphi:
true = -1

Bool in C:
true = ($FFFFFFFF)      1

Why not just make it exactly compatible, there must be some underlying (possibly obnoxious) reason for this mess.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to