On Sep 25, 12:45 pm, Brad <[email protected]> wrote:
> The Handle<T> class works to manage interaction with the GC and that
> the String class is just C++ veneer to allow access to the underlying
> GC-managed JavaScript strings.  However, there is a C++ class String
> with real C++ functions on it.  And a Handle<String> is just a (smart)
> pointer to an instance of that class.

My last sentence above is wrong.  The "this" pointer isn't really
pointing to an instance of String as allocated by, say, a String
constructor; it's (properly) cheating and using the this pointer
itself as the sole data member of the class.  I get it.
Notwithstanding, the equivalence of String* and String& still stands,
as far as I can tell.

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to