Re: Question about: ("1.1").to!int;

2020-10-24 Thread Jack via Digitalmars-d-learn
On Wednesday, 21 October 2020 at 22:50:27 UTC, matheus wrote: Hi, import std.stdio, std.conv; void main(string[ ] args) { auto a = (1).to!int; // this works auto b = ("1").to!int; // this works auto c = (1.1).to!int; // this works and c = 1 auto d = ("1.1").to!int; //

Re: Question about: ("1.1").to!int;

2020-10-24 Thread Виталий Фадеев via Digitalmars-d-learn
On Saturday, 24 October 2020 at 14:10:02 UTC, matheus wrote: On Saturday, 24 October 2020 at 04:04:18 UTC, Виталий Фадеев wrote: On Friday, 23 October 2020 at 16:59:06 UTC, matheus wrote: On Friday, 23 October 2020 at 13:57:41 UTC, Joseph Rushton Wakeling wrote: On Wednesday, 21 October 2020

Re: Question about: ("1.1").to!int;

2020-10-24 Thread matheus via Digitalmars-d-learn
On Saturday, 24 October 2020 at 04:04:18 UTC, Виталий Фадеев wrote: On Friday, 23 October 2020 at 16:59:06 UTC, matheus wrote: On Friday, 23 October 2020 at 13:57:41 UTC, Joseph Rushton Wakeling wrote: On Wednesday, 21 October 2020 at 22:50:27 UTC, matheus wrote: Well since the caller is

Re: GC and sensible data read by File

2020-10-24 Thread Imperatorn via Digitalmars-d-learn
On Sunday, 4 October 2020 at 12:10:39 UTC, frame wrote: Hello, I'm new to D and try to find out a memory leak in my program. I inspected the private bytes with VmMap on Windows to see which data is still kept. [...] The GC doesn't zero it out, so that's expected.

Re: Edit

2020-10-24 Thread frame via Digitalmars-d-learn
On Monday, 5 October 2020 at 11:28:56 UTC, ryuukk_ wrote: On Monday, 5 October 2020 at 11:14:47 UTC, frame wrote: So I found out that there is nothing wrong with the method as in a test environment the allocated memory block is removed after GC.minimize(). Still need to find out why other