[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Stack traces with tail calls: disabling tail recursion?
- From: Thijs Schreijer <thijs@...>
- Date: Wed, 26 Feb 2014 08:53:54 +0000
> Well, you could do something like this:
>
> return notail( func( x, y, z ) )
>
> where `notail` is
>
> function notail( ... )
> return ...
> end
>
Didn't test it, but I don't think this would work. The original call remains a tail call which remains indistinguishable, and now there is one more level on the stack, but they all point to 'notail' which is also indistinguishable. So back to square one...
Or am I missing something?
Some preprocessor magic could do the trick I think.