> See the API docs for

I've tried many times to find "the API docs". All I found is this:
http://code.google.com/apis/v8/intro.html

I've read through all the pages there, and I don't see any
documentation about these different API functions. What documentation
am I missing?


>Same pattern. Either you can use the ECMA conversions via "ToNumber", 
>"ToBoolean", ... or Cast the handle after checking "IsXXX". Number has "double 
>Value()", Boolean has "bool Value()". Array has Length() and Get(uint32).

I tried:

    bool logging = obj->Get(v8::String::New("my_bool"))->ToBoolean();

And the compiler complains:

    error: cannot convert v8::Local<v8::Boolean> to bool in
initialization

Then I tried:

    bool logging = (bool)obj->Get(v8::String::New("my_bool"))-
>ToBoolean();

And the compiler complains:

    error: invalid cast from type v8::Local<v8::Boolean>to type bool

Sorry, I'm sure the documentation that I'm failing to find makes this
all perfectly clear, but I'm having an extrodinary amount of
difficulty getting a type from the V8 version of that type
(v8::Boolean) to the actual c/c++ type (bool) so that I can do
something with it. Again, any help or direction to specific
documentation is greatly appreciated.

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

Reply via email to