Re: Release D 2.086.0
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"); } It sounds strange to me I can't use anymore full package syntax due to "import std"
Re: Release D 2.086.0
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
Re: Release D 2.086.0
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"); }
Re: Release D 2.086.0
On Monday, 6 May 2019 at 09:52:32 UTC, Aldo wrote: On Sunday, 5 May 2019 at 11:53:22 UTC, Martin Nowak wrote: Glad to announce D 2.086.0, ♥ to the 51 contributors. This release comes with copy constructors, a lowmem dmd switch, private member access for introspection traits, import std, dub init templates, and a single RTT resolution of dub dependencies. http://dlang.org/download.html http://dlang.org/changelog/2.086.0.html -Martin Awesome! I really like the dub linker change and traits change. Thanks. Try this: import std; void main() { std.file.write("/tmp/test", "hello"); } How should I fix this?
Release D 2.086.0
Glad to announce D 2.086.0, ♥ to the 51 contributors. This release comes with copy constructors, a lowmem dmd switch, private member access for introspection traits, import std, dub init templates, and a single RTT resolution of dub dependencies. http://dlang.org/download.html http://dlang.org/changelog/2.086.0.html -Martin