confusing (buggy?) closure behaviour

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Dec 13 06:31:39 PST 2008


On Sat, Dec 13, 2008 at 9:09 AM, Christopher Wright <dhasenan at gmail.com> wrote:
> D tries to make it easy to do the safe thing. It's a systems language, so it
> has to allow you to do unsafe things without too much trouble -- but usually
> with some not-too-pretty syntax to indicate that you're doing something
> unsafe.
>
> In this case, D1 fails. D2 works, though at the cost of additional, often
> unnecessary, heap allocation. Since D is a systems language, this is not
> good and is due to change soon. At least, I think Walter said he plans to
> implement scope delegates in D2.

He already has, as of the last update.


More information about the Digitalmars-d-learn mailing list