Re: Release D 2.086.0

2019-05-08 Thread Andrea Fontana via Digitalmars-d-announce

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

2019-05-07 Thread Seb via Digitalmars-d-announce

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

2019-05-07 Thread Daniel N via Digitalmars-d-announce

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

2019-05-07 Thread Andrea Fontana via Digitalmars-d-announce

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

2019-05-05 Thread Martin Nowak via Digitalmars-d-announce
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