Maybe make the database providers interfaces instead of data+dispatch? You're allocating the stuff anyway.

Do you mean inheriting from interfaces like this?

class MysqlStatement : Statement {...}

I need deterministic resource management and I don't think classes provide that. Using structs with RefCounted internals seems ideal for this and it appears to be working well.

erik

Reply via email to