Strings concatenated at compile time?

Unwise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 1 03:42:35 PDT 2014


In the following example from the documentation, are strings 
concatenated at compile time?

template foo(string s) {
   string bar() { return s ~ " betty"; }
}

void main() {
   writefln("%s", foo!("hello").bar()); // prints: hello betty
}


More information about the Digitalmars-d-learn mailing list