The Case Against Autodecode

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 14:35:26 PDT 2016


On 06/02/2016 11:27 PM, Andrei Alexandrescu wrote:
> On 6/2/16 5:24 PM, ag0aep6g wrote:
>> On 06/02/2016 11:06 PM, Andrei Alexandrescu wrote:
>>> Nope, that's a radically different matter. As the examples show, the
>>> examples would be entirely meaningless at code unit level.
>>
>> They're simply not possible. Won't compile.
>
> They do compile.

Yes, you're right, of course they do. char implicitly converts to dchar. 
I didn't think of that anti-feature.

> As I said: this thread produces an unpleasant amount of arguments in
> favor of autodecoding. Even I don't like that :o).

It's more of an argument against char : dchar, I'd say.


More information about the Digitalmars-d mailing list