Modern C++ Won't Save Us

Vladimir Panteleev thecybershadow.lists at gmail.com
Tue Apr 27 11:43:39 UTC 2021


On Tuesday, 27 April 2021 at 11:33:45 UTC, MoonlightSentinel 
wrote:
> On Tuesday, 27 April 2021 at 10:53:10 UTC, Vladimir Panteleev 
> wrote:
>> What does `scope` mean on a function declaration?
>
> It applies to the `this` pointer for member methods, just like 
> `return`.

Aah, so it makes `scope` with classes great again. I keep getting 
surprised by how awesome DIP1000 is.

> (Allthough `scope` is implicitly applied for structs IIRC)

That's interesting, because it seems to be required in the bug 
you filed.



More information about the Digitalmars-d mailing list