On Fri, Mar 28, 2008 at 01:35:01PM -0700, Noah Hart wrote:

I'm not an expert (yet... ;) - but I'm doing some TCL.

> sqlite3 db ./test.db
> set ::DB [sqlite3_connection_pointer db]
> 
> My question is: Why is the last line not "set ::DB db"

It seems, that there's an attempt to assign to global variable "DB" some
kind of pointer (which is string value, actually), returned by some function.

> What does sqlite3_connection_pointer do?

Look for the definition of that function - because it's function, which
is using "db" as its parameter, and  "[sqlite3_connection_pointer db]"
means: "value returned by function sqlite3_connection_pointer, which has
processed db".

> Since this is not a tcl verb, or defined by sqlite3, where does this get
> defined?

Somewhere else in tester.tcl? In any other script, "source"-d by tester.tcl?
-- 
                                pozdrawiam / regards

                                                Zbigniew Baniewski
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to