Can I rely on the presence of shell()?
-
26-10-2019 - |
Pergunta
std.process
has a nice shell()
function.
import std.process;
import std.stdio;
void main()
{
string Output = shell("ls .");
writeln("The contents of this directory are:");
write(Output);
}
It is documented in the Phobos source, but not online. This makes me a little hesitant to use it in real code. Is it experimental and unstable, or are the online docs just falling behind?
Solução
The problem is the documentation generation. You can safely use that function, it's not going away.
I'll file this bug.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow