[erlang-questions] Introspecting the atom table

Eric Merritt cyberlync@REDACTED
Thu Dec 21 02:24:28 CET 2006


Kostis,

 Any specific caveats that I should be aware of?

> Handle with care:
>
>
> Eshell V5.5.2.1  (abort with ^G)
> 1> list_to_existing_atom("erlang").
> erlang
> 2> list_to_existing_atom("gazonk").
>
> =ERROR REPORT==== 20-Dec-2006::23:06:58 ===
> Error in process <0.29.0> with exit value:
> {badarg,[{erlang,list_to_existing_atom,["gazonk"]},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
>
> ** exited: {badarg,[{erlang,list_to_existing_atom,["gazonk"]},
>                      {erl_eval,do_apply,5},
>                      {shell,exprs,6},
>                      {shell,eval_loop,3}]} **
>
> Kostis
>



More information about the erlang-questions mailing list