Escape this in pure members

ag0aep6g anonymous at example.com
Wed Sep 23 14:58:22 UTC 2020


On 23.09.20 02:06, DlangUser38 wrote:
> The following analysis might be wrong but I think that `scope` as a 
> **member** function attribute is not supposed to be used as that is not 
> even documented.

It's documented here:
https://dlang.org/spec/memory-safe-d.html#scope-return-params

Quote: "[`scope` and `return`] may appear after the formal parameter 
list, in which case they apply either to a method's this parameter, or 
[... irrelevant ...]."

It's less than ideal that the documentation of `scope` is spread over 
two pages.


More information about the Digitalmars-d-learn mailing list