On Mon, Mar 9, 2009 at 6:17 PM, Isaac Z. Schlueter <[email protected]> wrote: > > Check out the lib/system/posix.cpp module in k7. It creates a "file" > object that has an internal field set to a FILE* pointer. This object > is returned from the fopen function. > > If you try to sniff the object in JS, you'll just see {}. But in C++, > you can get at the internal field. That's how the fread/fwrite > functions work.
In the mean time (since i implemented the ncurses/sqlite3 wrappers) i've figured out how to use the internal fields and whatnot, so it's now just a matter of porting those wrappers to use full-fledged objects (which i didn't really want to do b/c i don't want the user tying data to them). Maybe i can use Integers instead. That'd work for my purposes. i hate that there are so few docs/examples, though, b/c i had to experiment the whole weekend to get classes working how i think they ought to work. (And i'll write an article about it, as i am prone to do, once i've got it genericized a bit more.) -- ----- stephan beal http://wanderinghorse.net/home/stephan/ --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
