[erlang-questions] Mnesia activity callback system context

Paul Mineiro paul-trapexit@REDACTED
Thu Jan 14 00:20:02 CET 2010


On Thu, 14 Jan 2010, Ulf Wiger wrote:

> I also did use parameterized modules once (I don't think I ever
> committed it to jungerl, though), when I wanted to make mnesia
> support writing to a table in the same (schema) transaction
> that was used to create the table. That required some rewrites of
> mnesia.erl and mnesia_tm.erl, though. Using the process dictionary
> is less invasive.

yes sadly, just looking at it, mnesia does pattern match on Mod being an
atom in a few places, which would frustrate the use of parametrized
modules.

that's not cool!

-- p


More information about the erlang-questions mailing list