[erlang-questions] binary optimization
Mon Jul 20 18:25:06 CEST 2009
----- Original Message ----
> From: Joel Reymont <joelr1@REDACTED>
> On Jul 18, 2009, at 12:04 PM, Richard Carlsson wrote:
> > or you try to rewrite the whole thing so you get a single main loop with
> > direct self-recursive tail calls (if that is at all doable).
> Wouldn't the tail call of the loop need to be written as ?MODULE:loop to enable
> code reloading?
> This would result in the previous "no optimization with apply" warning.
I'm not sure this was answered, but: ?MODULE macroexpands to the current module, so the example would be a remote call foo:loop(...), not an apply.
More information about the erlang-questions