opApply not called for foeach(container)

Timon Gehr timon.gehr at gmx.ch
Thu Jul 12 13:52:32 PDT 2012


On 07/12/2012 04:50 PM, monarch_dodra wrote:
> On Wednesday, 11 July 2012 at 20:24:42 UTC, Jonathan M Davis wrote:
>> The problem is that it's essentially spread out across 3 places: the
>> online
>> spec, TDPL, and the compiler.
>>
>> ...
>>
>> - Jonathan M Davis
>
> The problem is not only the documentation, it's getting authoritative
> answers. I see some strange behaviors, and I can't for the life of find
> out if it is a bug in the documentation/compiler, or a
> pitfall/misunderstanding.
>
> What is your take on the issue at hand? Bug or Pitfall?

A pitfall is to be considered a bug. Code should have the obvious
behaviour or be illegal.


More information about the Digitalmars-d mailing list