[erlang-questions] Erlang/OTP 20.0-rc1 is available for testing

Richard Carlsson carlsson.richard@REDACTED
Fri May 5 21:56:09 CEST 2017


I'd like to point out the following changes in the Erlang shell, for your
everyday use:

OTP-14190    Application(s): stdlib

               The shell functions c/1 and c/2 have been extended so
               that if the argument is a module name instead of a file
               name, it automatically locates the .beam file and the
               corresponding source file, and then recompiles the
               module using the same compiler options (plus any
               options passed to c/2). If compilation fails, the old
               beam file is preserved. Also adds c(Mod, Opts, Filter),
               where the Filter argument allows you to remove old
               compiler options before the new options are added.

               New utility functions file_find/2/3 and
               find_source/1/2/3 have been added to filelib.


OTP-14059    Application(s): kernel, stdlib

               Functions for detecting changed code has been added.
               code:modified_modules/0 returns all currently loaded
               modules that have changed on disk. code:module_status/1
               returns the status for a module. In the shell and in c
               module, mm/0 is short for code:modified_modules/0, and
               lm/0 reloads all currently loaded modules that have
               changed on disk.


        /Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170505/68f9a4d8/attachment.htm>


More information about the erlang-questions mailing list