I am still having problems returning an object from a getter, or from
any function from that matter.

I can't just call the same constructor callback that I use to create
the object, because v8::Arguments constructor is private. And it
doesn't seem like proper approach either.
I also tried the solution that luiskarlos sudgested, but that's not it
either. Some is returned, but there's no way to tell V8 that the
return object is of X type -- it always seems to believe that the
returned object is of the type doing the returning. Plus, if this were
the way to return an object instance, then it would mean that you have
to REdeclare destructor callbacks for those object instances.
I would have though that FunctionTemplate would have some method of
instantiating an instance, but I don't see any methods of doing this.

Can someone please shine some light on this?

How can one return an object instance of type X from a function or
method?
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to