easy module reload?

Mark Scandariato <>
Wed Apr 27 22:53:56 CEST 2005

The Fine Manual tells all: 

ke.han wrote:
> Cool..great little tool!!!
> In the post you reference, it says:
>  >> I've added this code to my _user_default.erl_
> Is this "user_default.erl" a special file that erlang loads with the 
> shell?  i.e. How do I get erl to load up with these nice little tools at 
> the ready?
> thanks, ke han
> Mark Scandariato wrote:
>> ke.han wrote:
>>> The way I work with erlang is to use a simple external editor and a 
>>> erl shell open separately.
>>> When I save a file in the editor, I go test it with the shell.  I 
>>> have read many erlang docs but can't seem to find a simple "one line" 
>>> function to reload my changed code.  I can do the initial 
>>> compile/load with c(ModuleName), but when I change the code and want 
>>> to recompile/reload, I have to use several commands.
>>> Am I missing something?  Also, a way to do this on a per .app file 
>>> basis would be great. i.e. I want to reloadApp(AppName) and have any 
>>> changed files in the app definition recompile and reload.  Is this 
>>> possible or should I write my own erlang scripts for this?
>>> thanks, ke han
>> Take a look at:
>> http://www.erlang.org/ml-archive/erlang-questions/200411/msg00068.html
>> Mark.

More information about the erlang-questions mailing list