[erlang-questions] Are nested records copied?

Richard A. O'Keefe ok@REDACTED
Tue Jun 4 04:09:34 CEST 2013

On 2/06/2013, at 3:34 AM, Bryan Hughes wrote:
> When the manager record is created, is the nested person record P referenced by the manager record M, or is it copied? 

Just pointed to.  A record with N fields takes exactly as much space as
a tuple with N+1 elements (because it *is* a tuple with N+1 elements),
no matter what those elements are.

More information about the erlang-questions mailing list