Error: function declaration without return type.
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jan 7 00:58:34 PST 2015
thanks!
Am I right understand that in next code scope(exit) stmt.close();
occur after this execution? And it will close connection so stmt
in function become unavailable.
this(parseConfig parseconfig)
{
[....]
auto conn = ds.getConnection();
scope(exit) conn.close();
stmt = conn.createStatement();
scope(exit) stmt.close(); //HERE
}
void InsertData()
{
auto rs = stmt.executeUpdate(sqlinsert); // stmt now unreachable
}
More information about the Digitalmars-d-learn
mailing list