[erlang-questions] Current term representation?

Richard A. O'Keefe <>
Tue Jul 15 03:08:31 CEST 2008


On 15 Jul 2008, at 6:23 am, Richard Carlsson wrote:
> Look in the file erts/emulator/beam/erl_term.h for the tag
> scheme; the comments are fairly detailed.

I was aware of that file, but there is a lot of detail not
explained, and there's one detail I have a hard time believing.
Can it really be true that empty tuples {} are heap allocated
"boxed" objects?
>
>
> > In particular, how are funs represented?
>
> The definition of the struct ErlFunThing is found in the file
> erts/emulator/beam/erl_fun.h.

Thanks.  I'd missed that one.

As for the rest, it's what I _thought_ was the case, but I was
hoping I was wrong.




More information about the erlang-questions mailing list