Hi Stephen, It would seem that whenever you call GetFunction() you get a distinct function based on the current state of the template. That is, if you add something to the template and call it again you get a different function, distinct from the first, with additional members. I assume that this is the intended behavior.
Best, Alfred On Oct 26, 6:05 pm, Stephan Beal <[email protected]> wrote: > Hi, all! > > From the v8::FunctionTemplate API docs: > > Local< Function > GetFunction () > Returns the unique function instance in the current execution > context. > > Does that mean that the returned function is unique unto itself (i.e. > can be changed independently of all other copies) or that it points to > a unique function within the current context? > > i.e. if i call this twice do i get the same Function or two different > Functions? > > (i've got an API decision to make which depends on the > interpretation.) > > :-? --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
