[erlang-questions] reset all bound variables

Ulf Wiger ulf@REDACTED
Sat Nov 24 00:41:40 CET 2007


And if you want to get a fresh shell, without killing your old bound
variables, you can hit Ctrl-G, then 's' to start another shell, and
'c' to connect to it. You can then switch back and forth between
different shells in the same erlang node through Ctrl-G.

BR,
Ulf W

2007/11/24, Bob Ippolito <bob@REDACTED>:
> 1> Bound = 1.
> 1
> 2> f().
> ok
> 3> Bound = 2.
> 2
>
> You can also use f(Bound) to forget just that one variable.
>
> -bob
>
> On 11/23/07, Andrew Arrow <oneone@REDACTED> wrote:
> > is there a way to reset all bound variables and make the erlang shell
> > go back to the 1> prompt?  If I exit out and type erl again it takes
> > 20 seconds to get back to the shell.  Is there a quicker way?  Thanks.
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list