Yigal Chripun Wrote: > the compiler itself could (and should) use it - currently there's a > built in interpreter for CTFE which is limited to a subset of D. > > instead of implementing a limited interpreter in addition to the > compiler, the compiler libs can easily be utilized for a JIT compiler > which will compile CTFE and run them during compilation using the same > code that is used to compile regular code.
I had the exact same thoughts a couple of days ago - but I remembered that floating point code *might* cause problems either because of precision modes or cross compiling. However going in this direction seems to open up more possibilities.
