3
std.process
有一个不错的shell()
功能。我可以依靠shell()的存在吗?
import std.process;
import std.stdio;
void main()
{
string Output = shell("ls .");
writeln("The contents of this directory are:");
write(Output);
}
它记录在Phobos源文件中,但不是online。这让我有点犹豫,在实际的代码中使用它。它是实验性的还是不稳定的,还是在线文档落后?
固定为下一版本(dmd 2.057)。 –