std.algorithm.among

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 14 02:12:52 PDT 2014


Ola Fosheim Grøstad:

> On Sunday, 13 July 2014 at 20:55:25 UTC, bearophile wrote:
>> D doesn't carry the range of mutable variables across 
>> different expressions.
>
> What is the reasoning behind this kind of special-casing?

Compiler simplicity and to avoid flow analysis. The value range 
is kept across const expressions since 2.066.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list