On Thursday, 23 June 2022 at 20:27:44 UTC, Ola Fosheim Grøstad wrote:
On Thursday, 23 June 2022 at 19:38:12 UTC, ag0aep6g wrote:
```d
void connect(ref scope node a, return scope node* b)
```

Thanks, so the `return scope` means «allow escape», not necessarily return?

It means "may be returned or copied to the first parameter" (https://dlang.org/spec/function.html#param-storage). You cannot escape via other parameters. It's a weird rule for sure.
  • DIP1000 Ola Fosheim Grøstad via Digitalmars-d-learn
    • Re: DIP1000 ag0aep6g via Digitalmars-d-learn
      • Re: DIP1000 Ola Fosheim Grøstad via Digitalmars-d-learn
        • Re: DIP1000 ag0aep6g via Digitalmars-d-learn
          • Re: DIP1000 Ola Fosheim Grøstad via Digitalmars-d-learn
          • Re: DIP1000 Ola Fosheim Grøstad via Digitalmars-d-learn
            • Re: DIP... Paul Backus via Digitalmars-d-learn
              • Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
                • ... Dukc via Digitalmars-d-learn
                • ... Ola Fosheim Grøstad via Digitalmars-d-learn
    • Re: DIP1000 Loara via Digitalmars-d-learn

Reply via email to