Not in that fashion. Work would need to be done  to the
FunctionTemplate::New to get this to work and not what you want to do.

Rather investigate creating a generic callback that will determine the
proper function you've defined and it will pass the arguments to the
stored member callback. You can store a data value inside the
FunctionTemplate that can be used in callback(s) to get information on
what your code should do.

My Initial Implementation had my user code store a list of function
delegates with an ID number and when I created a script function i'd
store the ID Number in the data field, and used that as an indexer for
my generic one size fits all callback. I am augmentnig it now to work
with my object types directly but for a quick up and running pass it
worked well enough.

On Nov 21, 10:00 am, Daniel <[EMAIL PROTECTED]> wrote:
> Is it possible to use a member function for a Function template?
>
> Like this?
>
> global->Set(v8::String::New("someJavaScriptFunction"),
> v8::FunctionTemplate::New(this->SomeMemberFunction));
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to