Release D 2.086.0

Seb seb at wilzba.ch
Tue May 7 18:05:49 UTC 2019


On Tuesday, 7 May 2019 at 17:29:34 UTC, Daniel N wrote:
> On Tuesday, 7 May 2019 at 15:13:05 UTC, Andrea Fontana wrote:
>>
>> import std;
>> void main()
>> {
>>   std.file.write("/tmp/test", "hello");
>> }
>>
>> How should I fix this?
>
> import std;
> import file = std.file;
> void main()
> {
>   file.write("/tmp/test", "hello");
> }

Alternatively, you can use toFile. It was created because of 
these std.file - std.stdio overlap:

https://dlang.org/phobos/std_stdio.html#.toFile


More information about the Digitalmars-d-announce mailing list