September 2013
Intermediate to advanced
548 pages
12h 25m
English
When we call M:f(Arg1, Arg2, ..., ArgN), we have assumed
that M is a module name. But M can also be a
tuple of the form {Mod1, X1, X2, ... Xn}, in which case
the function Mod1:f(Arg1, Arg2, ..., Arg3, M) is called.
This mechanism can be used to create “stateful modules,” which is discussed in Stateful Modules, and to create “adapter patterns,” discussed in Adapter Patterns.
Read now
Unlock full access