[erlang-questions] OTP-9649 and further changes

Gleb Peregud gleber.p@REDACTED
Tue Jan 10 17:32:02 CET 2012

On Tue, Jan 10, 2012 at 17:28, Yurii Rashkovskii <yrashk@REDACTED> 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]).
2> M = erlang.
3> M:length([1,2,3]).

Is there any case when wrapping is necessary, which I'm missing?


More information about the erlang-questions mailing list