local const functions - bug ?

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 10 00:20:29 PDT 2016


On Friday, 8 July 2016 at 09:01:10 UTC, Marc Schütz wrote:
> `foo()` is effectively a delegate, therefore `const` applies to 
> the context.

AFAIK const on a function can only ever refer to the `this` 
pointer, but there is no `this` pointer.


More information about the Digitalmars-d-learn mailing list