Using std.format required std.string?
Robert M. Münch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 15 08:48:34 PDT 2015
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
More information about the Digitalmars-d-learn
mailing list