[erlang-patches] add code:get_mode/0
Fri Feb 1 22:14:44 CET 2013
It looks like this patch went forgotten after the discussions I had with
Henrik offline and after I had problems running the test suites. It went
well with R16A.
A new function code:get_mode() can be used to detect how
the code servers behaves, returning 'embedded' or 'interactive'.
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 so that we can do the right thing.
git fetch git://github.com/vladdu/otp.git code_get_mode
Github shows a whitespace diff, but in my editor the whitespace is exactly
like on the line above. Maybe git does soemthing to it?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-patches