[erlang-questions] OTP-9649 and further changes

Barco You barcojie@REDACTED
Tue Jan 17 08:32:17 CET 2012


So, if OTP will not support this kind of trick since R16, that meant the
Misultin has to upgrade codes?


Barco

On Wed, Jan 11, 2012 at 12:36 AM, Yurii Rashkovskii <yrashk@REDACTED>wrote:

> > Why do you need wrapping module name in a tuple? It works without it:
> >
> > Eshell V5.9  (abort with ^G)
> > 1> erlang:length([1,2,3]).
> > 3
> > 2> M = erlang.
> > erlang
> > 3> M:length([1,2,3]).
> > 3
> >
> > Is there any case when wrapping is necessary, which I'm missing?
>
> That was just a minimal (and useless) case of how tuple modules
> behave. This is a far bigger deal when you have records (or just
> tagged tuples) and modules named according to them. One of the real
> use cases is misultin_req:
> https://github.com/ostinelli/misultin/blob/master/src/misultin_req.erl
>
> Yurii.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120117/72b851d8/attachment.htm>


More information about the erlang-questions mailing list