[fpc-devel]operator overloading problem
florian at klaempfl.de
Wed Sep 27 09:15:36 CEST 2000
Jonas Maebe schrieb:
> >> But then dos.getenv has to return an ansitring as well...
> >That's true, so what can we do?!
> >1. Using sysutils
> >2. Extend the DOS Unit in some way
> Normally it shouldn't cause any compatibility problems, since ansistrings
> can be converted to shortstrings on the fly. OTOH, what happens if the
> calling program is compiled in TP mode?
For clean programs it shouldn't be a problem but ...
What about a getenvansistring in the DOS unit? It doesn't marking
porting harder because
getenv will be a simple wrapper around getenvansistring. The parameter
should be an ansistring as well, of course.
More information about the fpc-devel