[erlang-questions] Interesting style i haven't seen....

Dave Smith dizzyd@REDACTED
Fri Oct 30 18:22:50 CET 2009

I may be wrong, but I don't think this has anything to do with
parameterized modules, but is instead an old-school way of invoking
functions. From the reference manual:

"When applied to a number N of arguments, a tuple
{Module,FunctionName} is interpreted as a fun, referring to the
function FunctionName with arity N in the module Module. The function
must be exported. This usage is deprecated. See Function Calls for an


On Fri, Oct 30, 2009 at 11:15 AM, Tony Arcieri <tony@REDACTED> wrote:
> On Fri, Oct 30, 2009 at 10:45 AM, Colm Dougan <colm.dougan@REDACTED> wrote:
>> .. by virtue of the fact that Dog is a tuple with a first element of
>> "dog".  I seem to recall this is a consequence of the parametrized
>> modules feature.
> Note that the paramaterized modules paper:
> http://www.erlang.se/workshop/2003/paper/p29-carlsson.pdf
> ...specifies the value representing a paramaterized module is opaque.  This
> is a side-effect of the implementation.
> That said, very interesting.
> --
> Tony Arcieri
> Medioh/Nagravision

More information about the erlang-questions mailing list