http://d.puremagic.com/issues/show_bug.cgi?id=5290
Don <clugd...@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugd...@yahoo.com.au --- Comment #12 from Don <clugd...@yahoo.com.au> 2012-01-24 06:29:05 PST --- (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #0) > > > The following invalid code is accepted: > > > import std.stdio; > > > void main() { > > > real[2] foo = [1.0L]; > > > writeln(foo); // [1, 0] > > > } > > > > Running it gives: > > > > object.Exception@src\rt\arraycat.d(31): lengths don't match for array copy > > D is statically typed, so it's better to refuse it at compile-time. Yes, but that's bug 2547. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------