On Sun, Apr 17, 2011 at 1:28 PM, crtmpserver <[email protected]> wrote:

> Templates are just blue prints of the future objects. Once plugged in,
> they become like little recipes for future instances (actual objects).
> They can be modified only before instantiating the context in C++ and
> after that from JS through .prototype
>
> Am I right?
>

If your description is correct (and i have no reason to believe that it
isn't) then i recommend to the v8 developers that they copy/paste your
description somewhere into the embedder's doc. It's the best/clearest
description of the role of the templates i've seen so far. (And it explains
the can't-change-after-calling-GetFunction() behaviour which has always
puzzled me.)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

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

Reply via email to