Hi, all!
i'm porting the sqlite3 bindings to a mixed interface, such that one
can do:
db = new SQLite3("my.db");
or:
db = sqlite3_open(...);
the latter interface is already implemented, with some 60 functions.
My goal here is to re-use those implementations such that the
following both go through the same code:
sqlite3_exec( db, ... );
db.exec(...);
the convention is that the 'db' handle arg always comes first, so i
can rely on that to check the call type if needed, but i'd rather
avoid the mess of having to check on each call.
Is there a standard way in which i can say "was this func called as
obj.Func() or Func()?"
:-?
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---