On Mar 4, 8:31 am, Ondrej Zara <[email protected]> wrote: > Have you ever thought about making these libraries available in an > object-oriented way? For instance, have a look at my MySQL > (http://code.google.com/p/v8cgi/wiki/API#MySQL_functions) or GD > (http://code.google.com/p/v8cgi/wiki/API_GD) bindings in v8cgi - these > basically define one or two JS "classes" (functions) and wrap relevant > functions as their methods.
Hi! i have indeed thought about it, but these two particular bindings won't be OO - doing a port of a C binding is much simpler (IMO), and i needed a simple starting point (i just started programming for v8 last Thursday or Friday, and wanted to learn the basics before i got into wrapping native classes). As part of SpiderApe i originally wrote OO bindings for ncurses and sqlite3, but wasn't happy with them. So i went back and implemented the low-level wrappers, and THEN went back and made OO wrappers on top of the bound low-level APIs. That's my plan here, too - write another (OO) layer on top of the lower-level API. --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
