Compile time function execution...

Walter Bright newshound at digitalmars.com
Thu Feb 15 18:14:42 PST 2007


Bill Baxter wrote:
> Yeh, it's not a big deal.  I was more just curious since you recently 
> added it back to DMD.  And since it does affect the /effective/ 
> semantics if you have a very deep recursion that overflows the stack. Or 
> is the stack for compile-time execution is actually on the heap?
> 
> Either way, it might actually be /better/ to have the compile-time 
> implementation have a limited stack so that infinite recursion errors 
> result in stack overflows rather than just the compiler hanging.

Right now, the compiler will fail if the compile time execution results 
in infinite recursion or an infinite loop. I'll have to figure out some 
way to eventually deal with this.



More information about the Digitalmars-d mailing list