Hmm... Mail was sent prematurely.
What I was meant to ask was is this possible? If so, what other information
would I need to pass to test_exec() and what's the calling signature for the
callback.
Thanks.
-- Sachin.
----- Forwarded Message ----
From: Sachin Desai <[email protected]>
To: [email protected]
Sent: Mon, February 14, 2011 10:44:15 AM
Subject: Calling blocks from C
I have idst (from trunk) compiled on a Mac and am playing around with some
code.
I have a simple program where I'm invoking some code as part of a sql query.
The
query execution is in C which results in a callback function ("callback") being
invoked. If the callback code is in C then everything works as expected. What
I'd like is to pass a block to the query as shown below and have the callback
invoke the block.
SQL exec: query withBlock: aBlock
[
| _query |
_query := query _stringValue.
{ test_exec((char *) v__query, callback); }
]
[
db := SQL new.
db exec: "select * from emp" withBlock: [ ... ].
]
Thanks.
--Sachin._______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc