[erlang-questions] what is $char ?

黃耀賢 (Yau-Hsien Huang) <>
Fri Dec 12 10:57:34 CET 2014


Turn on an Erlang console and check followings.

Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10]
[hipe] [kernel-poll:false]

Eshell V6.2  (abort with ^G)
1> $c.
99
2> $h.
104
3> $a.
97
4> $r.
114
5>

You got it?

/Y-H

On Friday, December 12, 2014, Leo Liu <> wrote:
> The OTP erlang/doc/reference_manual/data_types.html#idm140043841877600
> says: $char ASCII value of the character char.
>
> In cases of unicode what is $char? So far I have taken it to be the
> code-point. Could someone elaborate i.e. how does erlang go from $char
> -> integer?
>
> Thanks,
> Leo
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>

-- 

Best Regards.

--- Y-H. H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141212/7f8f2dcc/attachment.html>


More information about the erlang-questions mailing list