What does scope do as storage class?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Sat Dec 23 21:20:13 UTC 2017


On Saturday, December 23, 2017 21:05:25 Marc via Digitalmars-d-learn wrote:
> for example:
>
> scope struct S {
>    int x;
> }
>
> What does scope do here?

Absolutely nothing.

https://stackoverflow.com/questions/47240714/d-pure-classes-and-structs

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list