Le 21/01/2017 à 00:50, Nordlöw a écrit :
On Friday, 20 January 2017 at 23:45:38 UTC, Xavier Bigand wrote:
Using -type.max is close to what I want but for integer int.min is
different than -int.max.
In c++11 there is std::numeric_limits<T>::lowest() that works perfectly.
Can an equivalent property added to integer and floating types?
In D, these are builtin properties doced here:
http://dlang.org/spec/property.html
Is that what you where looking for?
Yes I saw that, but it seems few are missing
std::numeric_limits<T>::lowest() is describe as "A finite value x such
that there is no other finite value y
* where y < x."
I find something equivalent in the documentation.