Different results using Lists & tuples

Jilani Khaldi <>
Fri Aug 15 14:29:47 CEST 2003


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

but if I change (1) in
set_xi() -> Xi = {64,71,53,67,55,58,77,56,51,76,68}, X1.
it gives {64,71,53,67,55,58,77,56,51,76,68} // as expected ?

Thanks!

jilani




More information about the erlang-questions mailing list