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.
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.