[erlang-questions] OTP-9649 and further changes

Gleb Peregud <>
Tue Jan 10 17:32:02 CET 2012


On Tue, Jan 10, 2012 at 17:28, Yurii Rashkovskii <> wrote:
> Well, this is a "hack" used to enable parametrized modules. I,
> however, use it outside of parametrized modules (just make functions
> accept the value tagged with the module name as the last argument).
> This is why I prefer calling them tuple modules so that ...

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?

Best,
Gleb



More information about the erlang-questions mailing list