https://issues.dlang.org/show_bug.cgi?id=12571

--- Comment #4 from Andrej Mitrovic <[email protected]> ---
(In reply to Kenji Hara from comment #2)
> I don't think the code should work. When declaring scopeName variable,
> referring it in its initializer should cause forward reference error.

Note that C seems to have a greater ability than D w.r.t. this issue. For
example a piece of code I ran into recently:

-----
int** arr = malloc(sizeof(**arr) * 10);
-----

This works in C but can't in D. Whether that's a good thing or not, I don't
know.

--

Reply via email to