[Issue 7249] 2.058 regression: "no size yet for forward reference" when using this.init.tupleof
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 8 15:25:00 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7249
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-08 15:25:00 PST ---
(In reply to comment #2)
> So, if you think this is not a bug, I'm not against this change.
Yes, I think this is not a bug.
Additionally, old behavior had a order dependent problem.
struct S
{
alias typeof(this.init.tupleof[0]) T;
// Error: array index [0] is outside array bounds [0 .. 0]
// -> tupleof result was empty
int x;
alias typeof(this.init.tupleof[0]) T;
// OK, T == int
}
Now they raise forward reference error as a same.
I think it's better consistency.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list