<div dir="auto">Semantically it ensures that the atom is already in the atom table. Now I didn’t look at the code but maybe there is an assumption on this. </div><div dir="auto">Send a PR maybe?</div><div><br><div class="gmail_quote"><div>On Mon 16 Apr 2018 at 20:05, John Doe <<a href="mailto:donpedrothird@gmail.com">donpedrothird@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Fair enough, but it would be nice to have a version without such limitation.</div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-16 12:05 GMT+03:00 Attila Rajmund Nohl <span><<a href="mailto:attila.r.nohl@gmail.com" target="_blank">attila.r.nohl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span><div class="gmail_default" style="font-family:courier new,monospace"><span style="font-family:arial,sans-serif">2018-04-14 21:11 GMT+02:00 John Doe </span><span style="font-family:arial,sans-serif"><<a href="mailto:donpedrothird@gmail.com" target="_blank">donpedrothird@gmail.com</a>></span><span style="font-family:arial,sans-serif">:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,<div>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?</div></div>
</blockquote></div><br></div></span><div class="gmail_extra"><div class="gmail_default" style="font-family:"courier new",monospace">​I guess to avoid overwriting an unexpected module. The input binary can contain any code, if it pretends to be the list module, but the caller thinks its the strings module, that could be a problem.​</div><br></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><br></div><div>Cheers,</div><div>-- </div><div>Pierre Fenoll</div></div><div><br></div></div></div>