Second Draft: Coroutines
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Tue Feb 4 02:30:49 UTC 2025
On 04/02/2025 12:42 PM, Richard (Rikki) Andrew Cattermole wrote:
> Like I said; you explaint that only |opConstructCo| is the method /
> function that should be called to construct coroutines by the AST
> lowering, even called it a "new operator", but you still failed to
> include it in the section for changes to the language documentation.
> While it's correct that it's not needed for the grammar section, it
> is described in an text with starts with "a /potential/ shell"
> telling me as a implementor that this is *not* required while infact
> it is; just like you said: its an new operator, so it should be
> clearly marked as such. Maybe in a new section after the grammar
> changes, or wherever, as long as it's more clearly that it is
> required as you yourself said:
>
> Its not in the grammar section because operator overloads are not here:
>
> https://dlang.org/spec/grammar.html <https://dlang.org/spec/grammar.html>
Okay I changed my mind.
"In addition to syntax changes there is a new operator overload
``opConstructCo`` which is a static method. This will flag the type it
is within as an instanceable library coroutine type."
More information about the dip.development
mailing list