On 18 nov 2005, at 11:34, Joost van der Sluis wrote:
Why is it impossible to have a mysql40connection,
mysql41connection and
mysql50connection in one application? In what way is this
different from
having mysqlconnection and ibconnection in one application?
If we implement that, and sqldb is installed
Laz --> mysql40conn (tmysql40conn) --> mysql40 (pmysql, mysql_init())
mysql41conn (tmysql41conn) --> mysql41 (pmysql, mysql_init())
mysql50conn (tmysql50conn) --> mysql50 (pmysql, mysql_init())
Lazarus uses the mysql40conn,mysql41conn and mysql50conn units,
they all
use a different mysql-unit, but all those units implement functions
and
procedures with the same name, but with other arguments.
I'm not sure it the compiler will allow that?
As long as you use fully qualified identifiers for all types, global
variables, functions and procedures you use from those units, it
shouldn't be a problem. If you don't use a fully qualified
identifier, the one from the last unit in the uses clause which
contains that identifier will be used.
Jonas
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel