On Tue, Jun 26, 2012 at 6:27 PM, MikeM <[email protected]> wrote:

> V8 is still a bit foreign to me.  I'm trying to break that barrier.
>

Welcome aboard - i hope we can help you get over the initial humps. It can
be a bumpy ride.


>   How do I create a global template with a complete set of built-ins?
> I'd love some sample code that does this... :-)


>From my understanding you've already done that, but you're trying to take
it a step further and transport the object from its initial context to
another one. Can that work? i don't know for certain, but i _suspect_ the
answer is something along the line of "it can, with some notable caveats"
like object/namespace pollution. The vast majority of apps have (in my
rather long but narrow experience) a single context which starts life early
on in main() and ends life shortly before or after main() returns
(depending on whether one manually destroys it or lets the dtor do its
work). That is of course not a rule, but is "the common pattern" for the
apps i've worked on (http://code.google.com/p/v8-juice).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

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

Reply via email to