A D vs. Rust example
Stefan Hertenberger
SHertenberger at Web.de
Fri Oct 21 14:25:22 UTC 2022
On Friday, 21 October 2022 at 13:44:56 UTC, Don Allen wrote:
>
> Which is contrary to the purpose of using closures -- to
> capture free variables in the lexical environment, rather than
> having to pass them as arguments. What you have done above
> could (and should) be re-written with ordinary functions.
You are right, not sure what i had in mind while writing this :(
More information about the Digitalmars-d
mailing list