win32 from master: unicode functions by default?

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 13 00:10:10 PST 2015


On Thursday, 12 November 2015 at 15:58:53 UTC, Jonathan M Davis 
wrote:
> It seems pretty wrong for the A versions to be the default 
> though...

For my money it's a plain bug in bindings :)

> Still, even in C++ code, I've generally taken the approach of 
> using the W functions explicitly in order to avoid any 
> potential problems with A functions being called accidentally. 
> Regardless, the whole A vs W thing with Win32 is not exactly 
> one of its nicer features. :|

In C headers it's a backward compatibility for code written for 
win9x. As such it doesn't make much sense for new code and 
especially for D code. The mess is a price for thoughtless 
copying.


More information about the Digitalmars-d-learn mailing list