How to display a record ?

Gamoto gamoto@REDACTED
Sun Jun 7 15:46:21 CEST 2009


Hello,
Is it possible to display a record  instead of its content ?
Example:

-record (person,{name,phone}).
init()->
A=#person{name="john",phone="1234"},
io:format([A]),		*** hangs ***
%% but
io:format("~s~n",[A1#person.phone]).     *** display phone ***



More information about the erlang-questions mailing list