[erlang-bugs] external term format documentation

Doug Edmunds dougedmunds@REDACTED
Thu Jan 17 23:57:05 CET 2008


I am considering how the output of term_to_binary/1 could be
read in another programming language.  I ran across this issue.

In http://erlang.org/doc/apps/erts/erl_ext_dist.html,
Section 8.4 Float_Ext states:

"This term is used in minor version 0 of the external format; it has been
superseded by NEW_FLOAT_EXT
<http://erlang.org/doc/apps/erts/erl_ext_dist.html#NEW_FLOAT_EXT>."

Apparently it has not been superseded. ( R12B, Windows XP)

> term_to_binary(1.0) .

produces this binary:

<<131,99,49,46,48,48,48,48,48,48,48,48,48,48,48,48,48,48,
  48,48,48,48,48,48,101,43,48,48,48,...>>

The second byte is 99, followed by 31 bytes.
This is the byte code for Float_ext (Float string)
(See Section 8.4)

Is New_Float_Ext still pending?
When will it be implemented?


-- Doug Edmunds
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080117/46dec522/attachment.htm>


More information about the erlang-bugs mailing list