Compile time function execution...
Walter Bright
newshound at digitalmars.com
Sat Feb 24 21:05:51 PST 2007
janderson wrote:
> It does limit what we can do however it is more secure. In time the
> functions you need may appear as compile-timeable functions in D libs.
> Or if you have to C source, you may have a chance of being able to port
> them over. If they use assembly, then it will make things more difficult.
I expect that, over time, the capability of the compile time function
evaluator will improve. Some things are likely never to be evaluated,
however:
1) inline assembly - this would require building a CPU emulator. That's
an incredible amount of work for essentially 0 gain.
2) C code - c'mon, write it in D!
3) Functions only available in object form - see (1).
More information about the Digitalmars-d
mailing list