Struggling to implement parallel foreach...

Manu turkeyman at gmail.com
Tue Jun 18 12:09:45 UTC 2019


On Tue, Jun 18, 2019 at 7:15 PM Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On 6/13/2019 6:55 PM, Timon Gehr wrote:
> > It's not pretty that the qualifiers have a different meaning for
> > member functions and nested functions (because the nested function meaning could
> > be useful for member functions too), but it's what we have.
>
> Keep in mind that the address of a nested function and the address of a member
> function have the same ABI. In fact, closures are implemented as member
> functions under the hood.

Right, as it should. But it genuinely is weird that the object is not
qualified by the qualifier. If that were the case, it would all wring
out in the wash rather than all these bugs and oddities.


More information about the Digitalmars-d mailing list