Messieurs,
    Je vous ai expliqué ma profonde désolation quand à me trouver
parmi ce groupe c'est une coincidence et une faute de saisie dans
l'ordre de quelques lettres je m'excuse quoi que et par curiosité j'ai
vu de belles images sur votre site surtout celle de la terre et si je
vous écris en français c'est parceque je n'ai rien compris de ce que
vous disiez dans vos E-mails .
                                               Cordialement BELHADJ
MOUNIR   ET ENCORE UNE FOIS  I'am Sorry

2012/4/6  <[email protected]>:
>   Today's Topic Summary
>
> Group: http://groups.google.com/group/v8-users/topics
>
> Locally-scoped version of Persistent<T>? [1 Update]
>
>  Locally-scoped version of Persistent<T>?
>
> Marcel Laverdet <[email protected]> Apr 05 08:32PM -0500
>
> Hey I'm wondering why there isn't a helper class for Persistent<T> which
> will Dispose() a handle at the end of scope. It seems like right now v8
> encourages lots of unfriendly cleanup code such as:
>
> void function hello() {
> Persistent<Thing> thing = Persistent<Thing>::New(...);
> ...
> thing.Dispose();
> }
>
> This kind of code is difficult to maintain in many cases, and also
> vulnerable to memory leaks when using C++ exceptions. I'd like to see a
> version of Persistent<T> that behaves similarly to std::unique_ptr<T>. v8
> already has helper classes like this with Isolate::Scope and Context::Scope.
>
> Or perhaps there's a way to get what I want with local handles? I tried
> something like this to no avail:
>
> Persistent<Context> pcontext = Context::New(NULL, global);
> Local<Context> lcontext = pcontext;
> pcontext.Dispose();
>
> Any advise would be appreciated!
>
>
>
> You received this message because you are subscribed to the Google Group
> v8-users.
> You can post via email.
> To unsubscribe from this group, send an empty message.
> For more options, visit this group.
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

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

Reply via email to