The Case Against Autodecode

ZombineDev via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 1 12:09:00 PDT 2016


On Wednesday, 1 June 2016 at 19:07:26 UTC, ZombineDev wrote:
> On Wednesday, 1 June 2016 at 17:57:15 UTC, Andrei Alexandrescu 
> wrote:
>> On 06/01/2016 01:35 PM, ZombineDev wrote:
>>> On Tuesday, 31 May 2016 at 19:33:03 UTC, Andrei Alexandrescu 
>>> wrote:
>>>> On 05/31/2016 02:46 PM, Timon Gehr wrote:
>>>>> On 31.05.2016 20:30, Andrei Alexandrescu wrote:
>>>>>> D's
>>>>>
>>>>> Phobos'
>>>>
>>>> foreach, too. -- Andrei
>>>
>>> Incorrect. https://dpaste.dzfl.pl/ba7a65d59534
>>
>> Try typing the iteration variable with "dchar". -- Andrei
>
> I think you are not getting my point. This is not autodecoding. 
> There is nothing auto-magic w.r.t. strings in plain foreach. 
> Typing char, wchar or dchar is the same using byChar, byWchar 
> or byDchar - it is opt-in. The only problems are the front, 
> empty and popFront overloads for narrow strings...

in std.range.primitives.




More information about the Digitalmars-d mailing list