DMD 2.100, bring ont he attribute soup

Walter Bright newshound2 at digitalmars.com
Sun May 29 06:04:21 UTC 2022


On 5/28/2022 2:51 PM, Paul Backus wrote:
> The other big usability issue is the way `scope` works with `ref` parameters. D 
> programmers who haven't already learned DIP 1000's rules generally expect the 
> following two function declarations to be equivalent:
> 
>      void foo(scope int** p);
>      void bar(scope ref int* p);

Fortunately, `scope` is only subtractive, in that it subtracts from what you can 
do with it. Hence, the compiler detects errors in its usage.


More information about the Digitalmars-d mailing list