[erlang-questions] When is code_change triggered?

tsuraan <>
Thu Jun 26 19:01:05 CEST 2008

> The final piece of information is that calling c(Module) in the shell is
> shorthand for invoking the compiler and then invoking the various code
> methods for loading the new version of the module.  It is *not*, however,
> shorthand for invoking the release_handler; that wouldn't make sense
> for many reasons.  (The shortest path to seeing your code_change/3 handler
> called is, imho, rather long).

It seems like there ought to be a message that one could send to the
gen_X servers to tell them that there's new code they should be using.
 There isn't such a thing though?  I can live with restarting my erl
shells to test code fixes, but it just doesn't seem like it should be
necessary.  I'll have a look at the erlrc when I get a chance.  Maybe
there's inspiration to be found there.

More information about the erlang-questions mailing list