On Tue, May 4, 2010 at 9:00 PM, Roger Binns <[email protected]> wrote:
> On 05/04/2010 03:50 PM, Aron Rubin wrote:
>> If I could have a SQL function that returned an id of the current
>> frame I could create poor man's variables.
>
> You'll need to be more specific about what you mean here.  Give an example
> of the code you would like to write.  The only use of the word "frame" I
> know of in this context is stack frame.  It is certainly possible to do what
> you ask in Python (sys.getframe) but SQLite is in C and that doesn't require
> physical frames or "return locations".

Most execution environments that support calling including C and
Sqlite use a stack of frames. Looking at the Sqlite code, VDBE
maintains a stack of frames. I am suggesting that these frames are
assigned an id that is unique for that parallel execution. Since I do
not know the rules, present or planned, for parallelism in Sqlite I
cannot clearly define what those ids are. If each parallel path, i.e.
database open from programs, is assigned a unique id then the
combination of that id and the call depth would be sufficient for my
purposes.

Aron

-- 
Aron Rubin
Handy Husband & Daddy Jungle Gym & Senior Engineer
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to