views:

67

answers:

2

Hi Everyone, given that CLR supports tail call optimization I was wondering if Mono, and consequently Ironpython running on Mono has support for TCO ?

+4  A: 

I can't give a definitive answer, but there is ample evidence in forums (e.g., here) that because Mono doesn't use a callee-pops-arguments calling convention, it can't (easily) support tail calls. There is a couple of unresolved bugs, here and here, indicating that F# is still waiting for this.

Marcelo Cantos
@Marcelo Thanks that was very helpful +1
srean
A: 

Duplicate question: http://stackoverflow.com/questions/3816148/does-the-mono-runtime-already-handle-tail-call-optimisation-as-required-by-the-il

skolima
@Skolima Not quite, my question was with regards to _Ironpython_ running on Mono rather than on Mono per se
srean