Simple trampoline code

BCS none at anon.com
Thu Jun 11 19:59:11 PDT 2009


Hello Ellery,

> bearophile wrote:
> 
>> I'm trying to convert to D2 the following (quite simplified up)
>> Python code, that implements a trampoline to run tail-call functions
>> with no stack overflow:
[...]
>
> How DO you define the signature of a function that returns itself?
> 

Last I checked, you can't. Make it return a struct that has itself.




More information about the Digitalmars-d-learn mailing list