[Issue 5212] Safer typesafe variadics
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 5 08:29:50 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5212
--- Comment #9 from hsteoh at quickfur.ath.cx 2012-10-05 08:17:58 PDT ---
P.S. This bug still happens in latest git (dmd 2.061). Here's another test
case:
import std.conv;
import std.stdio;
class C {
real[] val;
this(real[] v...) {
val = v;
}
override string toString() {
return to!string(val);
}
}
C f() {
return new C(1.0);
}
void main() {
auto e = f();
writeln(e);
}
--
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