Re: Comparing D vs C++ (wierd behaviour of C++)

2018-07-24 Thread Caspar Kielwein via Digitalmars-d
On Tuesday, 24 July 2018 at 14:08:26 UTC, Daniel Kozak wrote: I am not C++ expert so this seems wierd to me: (...) int main(int argc, char **argv) { char c = 0xFF; std::string sData = {c,c,c,c}; unsigned int i = (sData[0]&0xFF)*256

Re: The extent of trust in errors and error handling

2017-02-06 Thread Caspar Kielwein via Digitalmars-d
On Monday, 6 February 2017 at 17:40:50 UTC, Chris Wright wrote: It works for every other programming language I've encountered. This issue is language agnostic. It works in D as well but at the same level of correctness and unknowns. I haven't heard anyone complaining about this elsewhere.

Re: Making preconditions better specified and faster

2016-12-18 Thread Caspar Kielwein via Digitalmars-d
On Sunday, 18 December 2016 at 21:58:57 UTC, Andrei Alexandrescu wrote: On 12/18/2016 04:24 PM, Caspar Kielwein wrote: On Sunday, 18 December 2016 at 10:47:42 UTC, Stefan Koch wrote: On Sunday, 18 December 2016 at 09:32:53 UTC, Caspar Kielwein wrote: On Thursday, 15 December 2016 at 18:48:22

Re: Making preconditions better specified and faster

2016-12-18 Thread Caspar Kielwein via Digitalmars-d
On Sunday, 18 December 2016 at 10:47:42 UTC, Stefan Koch wrote: On Sunday, 18 December 2016 at 09:32:53 UTC, Caspar Kielwein wrote: On Thursday, 15 December 2016 at 18:48:22 UTC, Andrei Alexandrescu wrote: https://issues.dlang.org/show_bug.cgi?id=16975 I'd love if preconditions where

Re: Making preconditions better specified and faster

2016-12-18 Thread Caspar Kielwein via Digitalmars-d
On Thursday, 15 December 2016 at 18:48:22 UTC, Andrei Alexandrescu wrote: https://issues.dlang.org/show_bug.cgi?id=16975 I like it. It's a step in the right direction of making contracts more powerful. I'd love if preconditions where available at the caller. This would make it possible to