Yes, I believe that is the overall proper way.
Alex
On Feb 27, 2009, at 8:51 PM, Stephan Beal wrote:
>
> Hi, all!
>
> Sorry for this silly question, but i can't find an example of it :/.
> i'm trying to simply populate an Array object from the C++ side. Is
> this basic approach the proper way:
>
> Handle<Array> array = Array::New( vlen );
> for( size_t i = 0; i < vlen; ++i )
> {
> array->Set( Integer::New( static_cast<int>(i) ), valvec[i] );
> }
>
> (where valvec is a std::vector<Handle<Value>> which was built from an
> input array of (sqlite3_value*))
>
> :-?
>
> >
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---