From: Martin Coxall Date: 2006-10-13T18:00:59+09:00 Subject: Re: Trying to understand JavaScript from Ruby's view > I wanted to compare that design to JavaScript. > In JavaScript, numbers(8 bytes), booleans, null, and undefined are > immediate values and all others are references. > I want to know how they are handled in memory (like variable size, bit > flags, etc.) especially how differently they are implemented from > ruby's implementation. > I couldn't find a good document about it. It would be implementation specific. In Rhino, they are Classes (ref types), and in KJS they are structs. So, the rather unhelpful answer is, it depends. It's not specified in the ECMA standard. Martin