On 07/02/2016 12:23 AM, Hiemlick Hiemlicker wrote:
This also seems like a bug in D because manifest constants used as sole arguments to ctfe'able functions should be replaced by the function result.
No. There are functions that don't have any dynamic input, but still take a long time to finish or don't finish at all. Eagerly attempting CTFE on these would be bad.
The compiler is supposed to produce a binary, which can then be run to make the computation. The compiler is not supposed to eagerly act as an interpreter and take forever to make the computation itself.
