On 9/26/17 8:44 AM, drug wrote:
26.09.2017 15:16, Steven Schveighoffer пишет:
Nullable!(char[]) x;
writeln(x); // Nullable.null;
static struct Foo { Nullable!(char[]) x; }
Foo foo;
writeln(foo); // error

So in one context, printing a nullable char[] works exactly as expected. In another context it does something different. The place where it's different needs to be diagnosed and fixed.


Isn't it relevant to https://issues.dlang.org/show_bug.cgi?id=11730 ?

I doubt it. That was associative arrays, and required a compiler fix.

This is likely a slight difference in how std.format works on a struct vs. a single value.

-Steve

Reply via email to