[erlang-questions] Question on Diagraph module

Matthias Lang <>
Sat Feb 2 07:50:12 CET 2008


Balu Balasubramanian writes:

 > When the shell (and in general any process) crashes won't it
 > automatically forget the variable bindings as well?

The shell is a bit tricky in that way, bindings are preserved from one
shell process to the next:

   1> self().
   <0.31.0>
   2> A = 3.
   3
   3> -x.
   ** exited: {badarith,[{erl_eval,eval_op,2},...
   4> self().
   <0.35.0>
   5> A.
   3

Matthias



More information about the erlang-questions mailing list