[erlang-questions] Fwd: Change in behaviour in 5.9

Michael Uvarov freeakk@REDACTED
Sat Jan 14 10:22:19 CET 2012


Don't use internal structure of iolist. It can be changed anytime. It is
useful for collecting data together, not for splitting it again. You only
can transform the iolist to a list or to a binary.


> Eshell V5.9  (abort with ^G)
> 1> io_lib:format("~10.6.0f", [7.0]).
> [["00",55,46,48,48,48,48,48,48]]
> 2> lists:flatten(io_lib:format("~10.6.0f", [7.0])).
> "007.000000"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120114/25183306/attachment.htm>


More information about the erlang-questions mailing list