Hacker News new | ask | show | jobs
by sklogic 3976 days ago
Usually it is implemented by reshuffling stack frame + jumping to the call destination. See how it is done in .NET, for example.

Do not confuse tail recursion, which is the least interesting narrow case of a tail call, with tail calls in general.

1 comments

Why can't you modify a JVM to do this? I don't get it.
Of course you can (but you have to add another instruction or an instruction prefix). But Oracle won't ever do it.