[Mono-dev] correct tail call optimization in mono
Peter Hercek
phercek at gmail.com
Sun Aug 2 17:20:08 EDT 2009
Hi,
I read some contradictory information about tail call optimization in
mono. So I did this test in FSharp:
let test_1 fn n = if n < 0 then 1 else fn (n - 1)
let rec test_2 n = if n < 0 then 1 else test_1 test_2 (n - 1)
let main = test_1 test_2 10000000
It works on MS .Net but crashes on mono (linux).
Do you plan to support the correct tail call optimization?
If yes, when it should be supported correctly?
Thanks,
Peter.
More information about the Mono-devel-list
mailing list