newCTFE Status November 2018

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Dec 8 15:42:43 UTC 2018


On Sat, Dec 08, 2018 at 04:06:11AM +0000, Joakim via Digitalmars-d wrote:
[...]
> Btw, do you know some way to get the current compile-time real's
> precision in D code? It would be useful to avoid static asserts from
> overflowing when the runtime real's precision exceeds the compile-time
> real's precision, which doesn't happen with dmd but can with ldc:
> 
> https://github.com/dlang/phobos/pull/6790#discussion_r238633160

Doesn't real.dig give the (approximate) precision of real? Or is that
hard-coded in the frontend?


T

-- 
Genius may have its limitations, but stupidity is not thus handicapped. -- Elbert Hubbard


More information about the Digitalmars-d mailing list