Can we fix this?

Imperatorn johan_forsberg_86 at hotmail.com
Wed Sep 29 16:23:34 UTC 2021


On Wednesday, 29 September 2021 at 14:34:01 UTC, deadalnix wrote:
> On Wednesday, 29 September 2021 at 14:16:50 UTC, jfondren wrote:
>> On Wednesday, 29 September 2021 at 10:44:53 UTC, Imperatorn 
>> wrote:
>>> https://issues.dlang.org/show_bug.cgi?id=2043
>>>
>>> Impossible?
>>
>> ... Documentation:
>>
>> D has two kinds of blocks, the `{ ... }` kind and the `(){ ... 
>> }();` kind.
>
> No, the later is just a lambda, with a perfectly normal scope 
> in it.
>
>> Within the former, for efficiency, [something about this bug].
>
> Doing something fast and wrong is not exactly efficiency.

I'm still a bit confused. What is the recommended approach here? 
Should we fix the language or have best practices/documentation 
on how to "work around" the problem.


More information about the Digitalmars-d mailing list