Different results using Lists & tuples

Bengt Kleberg Bengt.Kleberg@REDACTED
Fri Aug 15 14:42:26 CEST 2003


Jilani Khaldi wrote:

> Hi All,
>
> having
>
> -module(statistics).
> -export([set_xi/0,...]).
> ...
> set_xi() -> Xi = [64,71,53,67,55,58,77,56,51,76,68], X1. %% (1)
> ...
>
> why
>
> statistics:set_xi()
> gives as result "@G5C7:M983LD"  // seems a segment:offset memory address
>
this is a string. strings are represented by a list of integers, 0-255.
do

io:format( "~p~n", [statistics:set_xi()]).

to see the list. or add an integer > 255 to the list.


bengt




More information about the erlang-questions mailing list