[erlang-questions] code:load_binary - why there's module as argument

John Doe donpedrothird@REDACTED
Sat Apr 14 21:11:31 CEST 2018


Hi all,
I wonder why code:load_binary() requires module name as one of the
arguments? The function would fail if this name is not equal to the real
module name from the binary, so it can deduce the correct name. Why it does
not allow loading just whatever module from a given binary and return
something like {ok, moduleName} as the result?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180414/30ed1f20/attachment.htm>


More information about the erlang-questions mailing list