dip1000 return scope dmd v 2.100

vit vit at vit.vit
Sat May 7 14:00:19 UTC 2022


On Friday, 6 May 2022 at 17:17:01 UTC, Dennis wrote:
> On Friday, 6 May 2022 at 09:24:06 UTC, vit wrote:
>> [...]
>
> They were recently updated to match the implementation in 2.100.
>
>> [...]
>
> `return scope` means pointer members (such `this.ptr`, `C.ptr`) 
> may not escape the function, unless they are returned. If you 
> call `test()` on a `scope` variable, the return value will be a 
> scope pointer.
>
> [...]

Thanks


More information about the Digitalmars-d-learn mailing list