Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tomcam
· 3y ago · 0 comments
What does it mean to box an object?
Comments
[–]
davefol
3y ago
I believe allocating memory for objects on the heap.
https://stackoverflow.com/a/80113/10654749
[–]
tomcam
OP
3y ago
I think it’s more specific, something along the lines of turning a reference (pointer-allocated) object to a value-based object? But I’m woefully ignorant on this.
[–]
liuliu
3y ago
Oh, by "boxing object", I meant to create the in-memory object that can be used by JavaScript runtime, preferably native objects. For example, in JSC case, something like
https://developer.apple.com/documentation/javascriptcore/jsv...
.
[–]
tomcam
OP
3y ago
Ah, thanks