[erlang-patches] add code:get_mode/0
Wed Sep 19 10:05:21 CEST 2012
I have a small feature to suggest: add code:get_mode() to detect how
the code servers behaves, returning embedded, interactive or minimal.
Some applications (like erlide) have code to be loaded dynamically on a
node. It may be slow to load everything upfront every time, so if the
node is in interactive mode, we would like to just append to the load
path. Currently, there is no direct way to detect if the node is running
in embedded mode or not.
git fetch git://github.com/vladdu/otp.git code_get_mode
Since it is a very small, trivial addition, no tests are provided, but
I can do it on request.
More information about the erlang-patches