import std.stdio; struct X { int a; } struct Y { string b; } void main() { Y v = X(10000); writeln(v.b); }
ぴーーーーーーーーーーーーーーーーーーーーーーーー.
回避方法
import std.conv; struct Y //replace { string b; static Y opCall(T)(T x) { Y y; y.b = to!string(x.a); return y; } }
うーん.