Got 'fun mysql_close(sock : MYSQL*) : Void' as the last line :) Still a long way to go, but we are past the worst of it.