lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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.