Re: Slow start up time of runtime (correction: Windows real-time protection)

2018-03-21 Thread HeiHon via Digitalmars-d-learn
On Tuesday, 20 March 2018 at 16:56:59 UTC, Dennis wrote: On Tuesday, 20 March 2018 at 12:18:16 UTC, Adam D. Ruppe wrote: On Tuesday, 20 March 2018 at 09:44:41 UTC, Dennis wrote: This now leaves the question what's the best way to mitigate this, because I would gladly get rid of the second of de

Re: Slow start up time of runtime

2018-03-20 Thread HeiHon via Digitalmars-d-learn
On Tuesday, 20 March 2018 at 12:18:16 UTC, Adam D. Ruppe wrote: Go into the Windows security center and uncheck the real time virus check protection. I betcha you'll see this delay (and a similar one on dmd itself, your compiles could be running at half-speed with this too) disappear and everyt

Re: Checking, whether string contains only ascii.

2017-02-23 Thread HeiHon via Digitalmars-d-learn
On Thursday, 23 February 2017 at 08:34:53 UTC, berni wrote: On Wednesday, 22 February 2017 at 21:23:45 UTC, H. S. Teoh wrote: enforce(!s.any!"a > 127"); Puh, it's lot's of possibilities to choose of, now... I thought of something like the foreach-loop but wasn't sure if that is corre

Re: std.utf.decode behaves unexpectedly - Bug?

2015-11-07 Thread HeiHon via Digitalmars-d-learn
On Friday, 6 November 2015 at 20:00:43 UTC, BBaz wrote: Sorry, the forum as stripped my answer. Here is the full version: ... Thank you very much for taking the time to explain it!

Re: std.utf.decode behaves unexpectedly - Bug?

2015-11-06 Thread HeiHon via Digitalmars-d-learn
Sorry, I mixed up the line numbers from dmd 2.068.2 and dmd 2.069.0. The correct line numbers for dmd 2.069.0 are: Attempted to decode past the end of a string (at index 1) file=D:\dmd2\windows\bin\..\..\src\phobos\std\utf.d line=1281 and core.exception.RangeError@std\utf.d(1278): Range viol

std.utf.decode behaves unexpectedly - Bug?

2015-11-06 Thread HeiHon via Digitalmars-d-learn
Consider this: [code] import std.stdio, std.utf, std.exception; void do_decode(string txt) { try { size_t idx; writeln("decode ", txt); for (size_t i = 0; i < txt.length; i++) { dchar dc = std.utf.decode(txt[i..i+1], idx); writeln("

Re: Learning D

2014-08-26 Thread HeiHon via Digitalmars-d-learn
On Monday, 25 August 2014 at 16:46:11 UTC, Ryan wrote: What IDE should I use? I'm not big fan of Eclipse, although if I had to use it this wouldn't be a dealbreaker. Give me something easy and lightweight, unless you've got a GUI builder (this is why I started with MonoDevelop, though this isn