Making sense out of scope and function calls

Imperatorn johan_forsberg_86 at hotmail.com
Sun Nov 13 19:17:27 UTC 2022


On Sunday, 13 November 2022 at 19:06:40 UTC, 0xEAB wrote:
> ```d
> struct Foo { /* … */
>     hstring[] getHeader(LowerCaseToken name) scope return
>     {
>         return _headers[name].values;
>     }
>
> [...]

There's an old saying "you can't make sense out of scope"


More information about the Digitalmars-d-learn mailing list