Re: Implement the "unum" representation in D ?

2015-09-18 Thread skoppe via Digitalmars-d
On Friday, 18 September 2015 at 09:25:00 UTC, Ola Fosheim Grøstad wrote: D is created by hackers who enjoy hacking. They don't have the focus on correctness that verifiable-anything requires. So if you enjoy hacking you'll have fun. If are into reliability, stability and correctness you'll get

Re: Reasons to use D

2015-09-11 Thread skoppe via Digitalmars-d
On Friday, 11 September 2015 at 19:54:55 UTC, Adam D. Ruppe wrote: On Friday, 11 September 2015 at 15:30:05 UTC, Sebastiaan Koppe wrote: Does it have to do with char encodings? Not the issue I hit. Ah, forget about my suggestion, I misread something on the link you send. So when it said

Re: Interesting user mistake

2015-09-04 Thread skoppe via Digitalmars-d
On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang The gist of it is the user wrote =+ instead of +=. I wonder if we should disallow during tokenization the sequence "=",

Re: GC-proof resource classes

2015-08-30 Thread skoppe via Digitalmars-d
On Sunday, 30 August 2015 at 09:54:31 UTC, ponce wrote: On Saturday, 29 August 2015 at 16:12:52 UTC, skoppe wrote: I don't think it is a good idea to call create_handle() in the constructor. Why not just pass a handle into the Resource? This isn't related to the topic. By putting

Re: GC-proof resource classes

2015-08-29 Thread skoppe via Digitalmars-d
On Saturday, 29 August 2015 at 13:14:26 UTC, ponce wrote: class MyResource { void* handle; this() { handle = create_handle(); } ~this() { if (handle != null) // must support repeated calls for the case (called by .destroy + called by GC later)