Compile time function execution...

janderson askme at me.com
Sat Feb 24 17:29:09 PST 2007


Serg Kovrov wrote:
> Tyler Knott wrote:
>> You can only compile-time execute D functions that have their full 
>> source (and the full source of any functions they call) available to 
>> the compiler at compile-time.
> 
> Yeah I figured this much yet.
> 
> So, to access for example, math functions - I should provide D source 
> code. Sadly, there is not much I can do without at least C runtime...
> 

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.

-Joel



More information about the Digitalmars-d mailing list