[Issue 12571] Regression (2.063): Can no longer use static introspection on circular references
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 15 03:51:58 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12571
--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(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.
--
More information about the Digitalmars-d-bugs
mailing list