[erlang-questions] -mode directive (was: Erlang4Android)

Motiejus Jakštys <>
Sun Jan 20 11:31:44 CET 2013


On Sun, Jan 20, 2013 at 7:58 AM, Ulf Wiger <> wrote:
> The behavior of this function can aready be tweaked, using the -mode
> parameter.

Huh, I've never heard about this before, and neither my favorite
search engine nor OTP sources seem to be very helpful:

otp$ git grep -- ^-mode
erts/doc/src/escript.xml:-mode(compile).</pre>
erts/emulator/utils/count:-mode(compile).
erts/emulator/utils/loaded:-mode(compile).
erts/lib_src/utils/make_atomics_api:-mode(compile).
lib/diameter/bin/diameterc:-mode(compile).
lib/reltool/examples/mnesia_core_dump_viewer:-mode(compile).
lib/snmp/src/compile/snmpc.src:-mode(compile).
lib/stdlib/test/escript_SUITE_data/factorial_compile:-mode(compile).
lib/stdlib/test/escript_SUITE_data/factorial_compile_main:-mode(compile).
lib/stdlib/test/escript_SUITE_data/strange.name:-mode(compile).
lib/stdlib/test/escript_SUITE_data/tail_rec:-mode(interpret).
make/emd2exml.in:-mode(compile).

What does that mean?

-- 
Motiejus Jakštys



More information about the erlang-questions mailing list