DirEntry on Windows - wstring variant?

2014-10-24 Thread dcrepid via Digitalmars-d-learn
As a Windows programmer using D, I find a number of questionable things with D's focus on using string everywhere. It's not a huge deal to add in UTF-8 to UTF-16 mapping in certain areas, but when it comes to working with a lot of data and Windows API calls, the less needless conversions the

Re: DirEntry on Windows - wstring variant?

2014-10-24 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, October 24, 2014 21:06:37 dcrepid via Digitalmars-d-learn wrote: As a Windows programmer using D, I find a number of questionable things with D's focus on using string everywhere. It's not a huge deal to add in UTF-8 to UTF-16 mapping in certain areas, but when it comes to working

Re: DirEntry on Windows - wstring variant?

2014-10-24 Thread dcrepid via Digitalmars-d-learn
On Friday, 24 October 2014 at 22:53:15 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: Also, given how DirEntry works internally, I'd definitely be inclined to argue that it would be too much of a mess to support wstring unless it's by simply converting the name to a wstring when

Re: DirEntry on Windows - wstring variant?

2014-10-24 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, October 25, 2014 01:11:26 dcrepid via Digitalmars-d-learn wrote: On Friday, 24 October 2014 at 22:53:15 UTC, Jonathan M Davis via Anyway, some things to think about. DirEntry and all of the related functions and types would need quite a bit of rewriting to do what you're