Can't read a constant value in compile time?

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Nov 20 18:57:42 UTC 2018


On Tue, Nov 20, 2018 at 06:54:58PM +0000, Adnan via Digitalmars-d-learn wrote:
> Godbolt: https://godbolt.org/z/SWWOu7
> 
> When I write `something!(aNumber)()` and if a number is an
> immutable/enum it should be able to be read at compile time, right?
> Why is this different?
[...]

Read this article:

https://wiki.dlang.org/User:Quickfur/Compile-time_vs._compile-time


T

-- 
What do you get if you drop a piano down a mineshaft? A flat minor.


More information about the Digitalmars-d-learn mailing list