So, if OTP will not support this kind of trick since R16, that meant the Misultin has to upgrade codes?<div><br></div><div><br></div><div>Barco<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 12:36 AM, Yurii Rashkovskii <span dir="ltr"><<a href="mailto:yrashk@gmail.com">yrashk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Why do you need wrapping module name in a tuple? It works without it:<br>
><br>
> Eshell V5.9 (abort with ^G)<br>
> 1> erlang:length([1,2,3]).<br>
> 3<br>
> 2> M = erlang.<br>
> erlang<br>
> 3> M:length([1,2,3]).<br>
> 3<br>
><br>
> Is there any case when wrapping is necessary, which I'm missing?<br>
<br>
</div>That was just a minimal (and useless) case of how tuple modules<br>
behave. This is a far bigger deal when you have records (or just<br>
tagged tuples) and modules named according to them. One of the real<br>
use cases is misultin_req:<br>
<a href="https://github.com/ostinelli/misultin/blob/master/src/misultin_req.erl" target="_blank">https://github.com/ostinelli/misultin/blob/master/src/misultin_req.erl</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Yurii.<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>