aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/reference_manual/code_loading.xml
AgeCommit message (Collapse)Author
2016-12-07Update copyright-yearErlang/OTP
2016-05-04Update documentation regarding improvementsBjörn Gustavsson
2015-06-18Change license text to APLv2Bruce Yinhe
2015-03-12Update Erlang Reference ManualHans Bolinder
Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Hans Bolinder.
2014-02-20erts: Add more details to warning in on_load docsSverker Eriksson
2014-01-27Update the note for -on_load()Björn Gustavsson
We can't recommend -on_load() for general use.
2013-04-19Convert XML files to UTF-8Hans Bolinder
2011-12-09Update copyright yearsBjörn-Egil Dahlberg
2011-11-02Reference manual: Improve the documentation for external funsBjörn Gustavsson
2009-12-13Change the expected return value for on_load functionsBjörn Gustavsson
An on_load function is supposed to return 'true' to indicate that the module should be loaded, and 'false' if it should be unloaded. But returning any other term, as well as causing an exception, will also unload the module. Since we don't like boolean values mixed with other values, change the expected return value as follows: * If 'ok' is returned, the module will remain loaded and become callable. * If any other value is returned (or an exception is generated), the module will be unloaded. Also, if the returned value is not an atom, send a warning message to the error_logger (using error_logger:warning_msg/2). The new interpretation of the return value means that an on_load function can now directly return the return value from erlang:load_nif/2.
2009-12-09OTP-8304 Incompatible changes in the experimental NIF feature. Changed theSverker Eriksson
NIF function prototypes in order to allow more than 3 function arguments. Also an incompatible change in the return value of erlang:load_nif/2. Added support for references, floats and term comparison in NIFs. Read more in the documentation of erl_nif and erlang:load_nif/2.
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP