> A sequence holds three things in a small stack-allocated object, the > "capacity" which is the size of the buffer, "length" which is the current > amount of elements in the buffer and a pointer to the "buffer" itself. This > amounts to 24 bytes.
Sorry, I do not have you valid email address, and contacting you by a github issue may be something what you may not really like. But I read this comment now for the second time from you, and it is obviously wrong: proc main = var s: seq[int] echo s.sizeof main() Run This prints 8 for refc GC and 16 for --gc:arc. On 64 bit Linux OS. Indeed I was only sure that your 24 byte was wrong, I did not really remembered the 8/16 difference. I think I have to prove read that in my book.