I've been fixing up the MySQL.jl package recently. To receive data on the 
client-side from prepared statements, I need to pass around an array of mutable 
structs, defined in MySQL C's API, so that C can populate those structs with 
data from the server.

If helpful, an example of how this works in pure C is at: 
http://www.erickcantwell.com/2011/08/mysql-prepared-statements-in-c/ 
<http://www.erickcantwell.com/2011/08/mysql-prepared-statements-in-c/>

I'm not sure how one is supposed to work with arrays of mutable structs. Since 
the structs satisfy the isbits() requirement when written as Julia immutables, 
I think I can get away with passing an array of Julia immutable objects and 
letting C do all the mutation. Is that the best way to do this sort of thing in 
Julia?

 -- John

Reply via email to