Hotswap

Jay Nelson jay@REDACTED
Thu Apr 3 09:25:15 CEST 2003


Peter wrote:
 > -module(simple_server).

 > server() ->
 >     receive
 >        {tagA,Data} ->     %% do A ...
 >                server();      % <<<<<<<<<<<<<<<< case A
 >        {tagB,Data} ->      %% do B ...
 >                simple_server:server(); %<<< case B
 >      end.

Does the entire module simple_server get loaded?

If not, what about new functions that server() might call
in the new version?

If so, why does Chris say that
the interface must stay the same -- wouldn't loading
the whole module introduce a potentially new interface?

jay




More information about the erlang-questions mailing list