[erlang-questions] [Q] erlang:check_process_code/2

Bjorn Gustavsson <>
Fri Apr 18 13:04:26 CEST 2008


Ladislav Lenart <> writes:

> Hello again,
> 
> the only difference is that I tried `fun Mod:f/0' and `f/0' but did not
> try `fun () -> ok end' which I assume is the only "internal fun" from the
> three, right?

fun f/0 is also an internal fun.

erlang:check_process_code(P, some_mod) still returns true if I change
some_mod to:

-module(some_mod).
-compile(export_all).

some_fun() ->
    fun f/0.

f() ->
    ok.


What if you run my code? Do you get the same result as I did?

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list