[erlang-questions] a surprising atom

Ulf Wiger ulf@REDACTED
Wed Oct 22 20:36:37 CEST 2008


2008/10/22 Bob Ippolito <bob@REDACTED>:
> Why is that surprising? Is it any more surprising than this?
>
> 1> list_to_atom([0]).
> '\000'
> 2> list_to_atom([255]).
> ?

I think that has to do with your tty settings. For me it's:

11> list_to_atom([255]).
ÿ

(However that displays on your end, but to me it looks
like a small y with diaeresis.)

BR,
Ulf W


>
> On Wed, Oct 22, 2008 at 10:45 AM, Anthony Shipman <als@REDACTED> wrote:
>> Eshell V5.6.4  (abort with ^G)
>> 1> X = ''.
>> ''
>> 2> is_atom(X).
>> true
>>
>> --
>> Anthony Shipman                    Mamas don't let your babies
>> als@REDACTED                   grow up to be outsourced.
>> _______________________________________________
>> 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