[Issue 8304] writeln of empty Nullables too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 19 19:53:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8304
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-19 19:53:36 PDT ---
This could work:
string toString() const
{
return this.isNull ?
format("Nullable!%s is null", T.stringof) : text(get());
}
How sophisticated does this have to be anyway?
--
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