I want to create a "CREATE TABLE data (...)" where the columns are derived from struct member names. Something like:

string s = "CREATE TABLE data(";

static foreach(f; FieldNameTuple!myStruct) {
 s ~= f ~ ",";
}

s ~= ");";

Which of course doesn't work... I didn't find any reference how to build-up strings in a statif foreach loop.

Is this possible at all?

--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster

Reply via email to