2011-12-01 41 views
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。这让我有点犹豫,在实际的代码中使用它。它是实验性的还是不稳定的,还是在线文档落后?

回答

5

问题是文档生成。你可以放心地使用这个功能,它不会消失。

我会提交这个错误。

+0

固定为下一版本(dmd 2.057)。 –

相关问题