[fpc-devel]operator overloading problem

Marco van de Voort marcov at stack.nl
Wed Sep 27 09:22:19 CEST 2000

> > >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
> of getenvansistring
> should be an ansistring as well, of course.

Getpchar is better. Can be autoconverted too, and also can be used to get
long env strings in plain tp mode.

More information about the fpc-devel mailing list