<div dir="ltr">On 2 August 2013 15:51, Sönke Ludwig <span dir="ltr"><<a href="mailto:sludwig@outerproduct.org" target="_blank">sludwig@outerproduct.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 01.08.2013 22:59, schrieb Stewart Gordon:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- Define a mixin template along the lines of __AW in newer versions of<br>
MinGW, so that<br>
<br>
     version (Unicode) {<br>
         alias QwertW Qwert;<br>
     } else {<br>
         alias QwertA Qwert;<br>
     }<br>
<br>
can become simply<br>
<br>
     mixin DECLARE_AW!("Qwert");<br>
<br>
</blockquote>
<br></div>
I would seriously take into consideration to just drop the "A" versions. D is unicode by nature, the "W" versions are supported by all NT systems (since Windows 95 using MSLU), and using an ANSI version of a function also just begs for bugs if typed as "char*" instead of "ubyte*". Many newer functions also just have a single wide string variant.<br>
</blockquote><div><br></div><div>+1, totally agree. There's no compelling reason to support the ascii functions, and it's not in the spirit of D.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

IMO this is just legacy cruft that was maybe still useful in times when supporting Windows 95 was important and MSLU had to be installed as an explicit add-on, but for nothing else really (although frequently used in C programs because it saves typing an additional character: "" vs. L"" or even _T("")).<br>

<br>
Also switching API based on a version statement always introduces a chance to break interoperability of two libraries that require the version to be set differently.<br>
<br>
The issue here of course is breaking existing code that doesn't use the "Unicode" path. Not sure how serious this is, though...<br>
</blockquote></div><br></div><div class="gmail_extra">Can we do a sensis of some sort?</div></div>