1) I am not a v8 dev but here are my thoughts. Throwing in normal C++
would be rather hard to recover from if you wish to continue in the
same code path (you could do nested try catches I guess). If you were
to provide bindings to a non-c++ language this would be extremely odd
to work around.

2) It is persistent (lives beyond the scope), as such the destructor
will not be called on it w/o using dispose because it lives beyond the
scope it is declared in for that example. (more on this in v8.h)

Cheers,
Bradley

On Oct 21, 3:05 pm, Andrea Odetti <[email protected]> wrote:
> Hi,
>
> I've just started using v8 and I am struggling to understand a couple
> of things.
> It is written in C++ but it i snot taking full advantage of the
> language
>
> 1) exception: why is it not throwing normal C++ exceptions? I need to
> check after most calls if the TryCatch has caught anything
>
> 2) the examplehttp://code.google.com/apis/v8/get_started.htmlstill
> calls context.Dispose();
>  before returning. is it compulsory? is it not already called by the
> destructor?
>
> Or I am misunderstanding some design ideas?
>
> Andrea

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

Reply via email to