"function ... is not callable using argument types"

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 1 12:17:54 PST 2015


Suliman:

> But why variant:
> static const int PGSQL_UNITTEST_PORT = 5432;
>
> do not require of implicit convert to!short() at connection 
> string?

Because value range analysis now propagates the range even across 
expressions if they are const. It's a recent improvement to make 
the D compile a bit less stupid.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list