Tail/Non tail recursion

Bjorn Gustavsson <>
Fri Aug 29 15:32:44 CEST 2003


"Peter Lund" <> writes:

> Yes, this is what I meant even if I failed to write that into plain
> language. I have a faint memory from several years ago, that there
> was a compiler optimization for exactly this type of non-recursive
> calls, that in fact made it behave like a tail-recursive function.
> Maybe someone that KNOWS can tell us if anything like this exist.
> 
> /Peter
> 

No, there is no such optimization in Beam.

/Bjorn


-- 
Björn Gustavsson            Ericsson Utvecklings AB
      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö



More information about the erlang-questions mailing list