Re: Vision for the D language - stabilizing complexity?

2016-07-10 Thread DLearner via Digitalmars-d
On Friday, 8 July 2016 at 19:43:39 UTC, jmh530 wrote: On Friday, 8 July 2016 at 18:16:03 UTC, Andrei Alexandrescu wrote: You may well be literally the only person on Earth who dislikes the use of "static" in "static if". -- Andrei You have to admit that static is used in a lot of different

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread DLearner via Digitalmars-d
On Monday, 6 June 2016 at 20:19:20 UTC, Observer wrote: And when real-world money is involved, you'd better have arithmetic overflow trigger an exception, not just wrap around silently. Suggest as compiler option, default=on. IBM PL/I had a _FIXED DECIMAL_ datatype, many many years ago. Could

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread DLearner via Digitalmars-d
On Monday, 6 June 2016 at 19:30:52 UTC, Observer wrote: On Monday, 6 June 2016 at 18:55:22 UTC, Ola Fosheim Grøstad wrote: On Monday, 6 June 2016 at 18:36:37 UTC, Observer wrote: It's more complicated than that. Part of what you need is to be able to declare a variable as (say) having two sign

Suggestion: arrays.

2015-08-11 Thread DLearner via Digitalmars-d
From dlang: Static array properties are: ... .dup Create a dynamic array of the same size and copy the contents of the array into it. .idup Create a dynamic array of the same size and copy the contents of the array into it. The copy is typed as being immutable. ... Dynamic array properties

Suggested enhancement: New basic datatype: 'dec'.

2015-06-25 Thread DLearner via Digitalmars-d
A signed decimal datatype to support writing userland accounting programs (major business application area), without loss of accuracy (including losses caused by not all 'decimal decimals' having exact 'binary decimal' representation). Syntax: dec(a,b) foo; Where a is an integer 1<=a<=99 (to