Hi there,<br><br>My apologies if this is the wrong place to be asking this, but I'm new to Scheme and am not sure where I can get this question answered. If you know a better place to ask this, please point me in the right direction.<br>
<br>Basically, I'm learning Scheme by implementing it in Ruby while reading SICP. I've added tail calls and also an optional lazy (normal-order) evaluation mode, but I can't get the two to play together. I have a factorial function that runs iteratively in eager mode, but it blows up the stack in lazy mode.<br>
<br>I was wondering whether it's possible to have tail call optimisation when using normal order. I don't want to bang my head against the wall trying to make it happen if it can't be done.<br clear="all"><br>
-- <br>James Coglan<br>