Skip to content

Instantly share code, notes, and snippets.

@krestenkrab
Created March 4, 2010 13:01
Show Gist options
  • Save krestenkrab/321675 to your computer and use it in GitHub Desktop.
Save krestenkrab/321675 to your computer and use it in GitHub Desktop.
krab$ cat > foo.erl
-module(foo).
-export([main/0]).
main() -> version1.
^D
krab$ ./erl.sh
Eshell V5.7.3 (abort with ^G)
1> c("foo").
[compiling foo:59ms]{ok,foo}
2> foo:main().
version1
3> ^Z
[1]+ Stopped ./erl.sh
krab$ cat > foo.erl
-module(foo).
-export([main/0]).
main() -> version2.
^D
krab$ fg
./erl.sh
c("foo").
[compiling foo:10ms]{ok,foo}
4> foo:main().
version2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment