Can we fix this?

Adam D Ruppe destructionator at gmail.com
Thu Sep 30 11:44:36 UTC 2021


On Thursday, 30 September 2021 at 11:36:01 UTC, bauss wrote:
> I really like that in C++ because you don't clutter memory with 
> unnecessary references. Your closure will only reference what 
> you capture.

That's actually true in D as well. The compiler looks at the 
variables referenced in the closure automatically.


More information about the Digitalmars-d mailing list