On Tuesday, 26 April 2022 at 23:00:57 UTC, cc wrote:
If your draw code doesn't depend on any scoped state you can use `function()` instead of `delegate()` to save a GC call.
`scope delegate` also works here and just reuses the stack.
Adam Ruppe via Digitalmars-d-learn Tue, 26 Apr 2022 16:10:59 -0700
On Tuesday, 26 April 2022 at 23:00:57 UTC, cc wrote:
If your draw code doesn't depend on any scoped state you can use `function()` instead of `delegate()` to save a GC call.
`scope delegate` also works here and just reuses the stack.