xxxxxxxxxx
import std.stdio;
struct SmallString
{
char[24] small;
char[] data;
this();
this(scope const(char)[] s)
{
if (s.length < small.length)
{
small[0 .. s.length] = s[];
small[s.length] = 0;
data = small[0 .. s.length];
}
else
{
assert(0, "Compilation failed before I wrote this.");
}
}
}
void main()
{
writeln("Hello D");
}