Hi, wondering why this happens:

import std.format;

void ods(T...)(auto ref T args){
 format(args).ptr;
 return;
}

ods("%s @ %s", mystring, mystring.ptr);

Error: undefined identifier format

If I add: "import std.string;" everything compiles and works.

Since the docs of std.format contains all the format specifier description etc. I would expect that only including "std.format" should be enough.

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

Reply via email to