[erlang-patches] supervisor patch for parameterized modules

Richard Carlsson <>
Thu Oct 2 10:09:52 CEST 2008

Joseph Wayne Norton wrote:
> The supervisor application does not support children that are
> implemented by a parameterized module.  The following change permits a
> tuple for a child spec.  Is this behavior by design (possibly for code
> reloading purposes)?

There's a lot of old code that assumes that a module is an atom and
nothing else. To fully support modules-as-a-datatype, there should be
a new type test is_module(X), rather than temporarily inserting tests
for tuple-ness (which have to be changed when module objects are no
longer represented as tuples).


More information about the erlang-patches mailing list