dsafe: init directory

This commit is contained in:
Jeremy Baxter 2024-02-19 10:32:47 +13:00
parent 84bf83a36b
commit 43b30424b1
2 changed files with 31 additions and 0 deletions

11
dsafe/stderr.d Normal file
View file

@ -0,0 +1,11 @@
/*
* Opening stderr in safe D
*/
import std.stdio : File;
File
stderr() @safe
{
return File("/dev/stderr", "w");
}