Hi all,

my question:

Can I get the property handlers of a function template to be called
when a property of an inheriting object is accessed?

I have a function template that defines named property handlers. Code:

mTemplate->InstanceTemplate()->SetNamedPropertyHandler(
            ActorComponentNamedPropertyGetter,
            ActorComponentNamedPropertySetter,
            ActorComponentNamedPropertyQuery,
            0, // no deleter
            ActorComponentNamedPropertyEnumerator
         );

I also have a function template that inherits from mTemplate. When I
set or get properties on an instance of the derived function template
I want the property handlers of mTemplate to be called. How can I
achieve this? Changing the code to
mTemplate->PrototypeTemplate()->SetNamedPropertyHandler ...
does not work.
The only solution I have is to assign the property handlers to the
instance template of the derived class.
Is there a more elegant way?

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to