[erlang-questions] erlang:fun_info behaving strangely

Witold Baryluk baryluk@REDACTED
Mon Aug 31 17:50:43 CEST 2009


Dnia 2009-08-31, pon o godzinie 16:32 +0100, Daniel Kwiecinski pisze:
> Hi
> 
>     Can somebody explain the difference in results of calling the same code
> directy from erlang console as opposite to calling it via defined module:
> 
...

> 
> Both functions are local but only the one defined directly in console had
> environment.
> 
> 
> Many Thanks in advance for any help on this.,

code in shell is interpreted directly from abstract syntax tree
using erl_eval code written in erlang,

code in module is compiled to bytecode and then executed using fast
bytecode interpretation inside of Erlang VM which is is written in C.

This is the main difference.

-- 
Witold Baryluk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: To jest cz??? wiadomo?ci podpisana cyfrowo
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090831/dfcb299e/attachment.bin>


More information about the erlang-questions mailing list