Re: What is the best way to stop App after exception?

2016-02-15 Thread Messenger via Digitalmars-d-learn
On Monday, 15 February 2016 at 15:17:01 UTC, tcak wrote: [...] BUT (This is a big but with single t), in multithreaded process, throwing Error in a thread that is not the main thread won't stop your process still and you are still left with "exit" function. Mind, if you're doing the normal

Re: How to force evaluation of range?

2016-02-12 Thread Messenger via Digitalmars-d-learn
On Friday, 12 February 2016 at 20:43:24 UTC, Taylor Hillegeist wrote: So I have this code and I have to add the element .each!(a => a.each!("a")); to the end in order for it to evaluate the range completely and act like I expect it too. Is there a better thing to put in the place of .each!(a

Re: Why this code can't take advantage from CTFE?

2016-02-03 Thread Messenger via Digitalmars-d-learn
On Wednesday, 3 February 2016 at 15:59:43 UTC, Adam D. Ruppe wrote: You never asked for CTFE. CTFE only happens when it *has* to - when you write code that specifically asks for or requires it. What is a good way to try to force it? Using enum? Then optionally copying the value once to

Re: Why this code can't take advantage from CTFE?

2016-02-03 Thread Messenger via Digitalmars-d-learn
On Wednesday, 3 February 2016 at 17:16:30 UTC, Andrea Fontana wrote: But if I want a normal var, not static or enum? There's no way to force it? Just make a mutable copy of it, I think.

Re: OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-28 Thread Messenger via Digitalmars-d-learn
On Saturday, 28 March 2015 at 01:09:44 UTC, Laeeth Isharc wrote: On Friday, 27 March 2015 at 11:33:39 UTC, Kagamin wrote: Hmm... science exists only as long as we don't understand something, then it disappears and only knowledge remains. Looks like he talks about engineering, but calls it

Re: I want to introduce boost_asio to dlang

2015-03-05 Thread Messenger via Digitalmars-d-learn
On Thursday, 5 March 2015 at 07:38:35 UTC, ketmar wrote: On Thu, 05 Mar 2015 06:05:55 +, zhmt wrote: But I am not familiar with dlang this is the root of the problem. please, make yourself familiar before starting to wrap boost crap. Unwarranted tone imo. Let's play nice.

Re: whats happening to my binary file size?

2014-08-26 Thread Messenger via Digitalmars-d-learn
On Tuesday, 26 August 2014 at 23:36:44 UTC, Israel wrote: I wasnt paying any attention to the file size of my binaries when i started using D. My first program is simple and compiles at 486kb, which honestly, is kind of absurd but anyways, after i start adding other imports it ran all the

Re: Appender is ... slow

2014-08-15 Thread Messenger via Digitalmars-d-learn
On Friday, 15 August 2014 at 10:31:59 UTC, Dicebot wrote: On Friday, 15 August 2014 at 08:35:41 UTC, Philippe Sigaud via Digitalmars-d-learn wrote: I wonder if using plain `Array` instead may be result in better performance where immutability is not needed. Hmm, no: ... It is very

Re: 'with(Foo):' not allowed, why?

2014-08-09 Thread Messenger via Digitalmars-d-learn
On Saturday, 9 August 2014 at 09:11:53 UTC, Marc Schütz wrote: On Saturday, 9 August 2014 at 03:46:05 UTC, timotheecour wrote: On Wednesday, 6 August 2014 at 17:03:23 UTC, Timothee Cour via Digitalmars-d-learn wrote: Is there a reason why 'with(Foo):' is not allowed, and we have to use