[fpc-pascal] String conversions

Jonas Maebe jonas at freepascal.org
Tue Jun 25 20:16:12 CEST 2019


On 25/06/2019 20:15, Ryan Joseph wrote:
> I’m making some string helper functions and using ansistring as inputs (in case there are longer strings than 255 chars). What happens when you pass a short string as an ansistring? Does the compiler have to allocate a new ansistring or can it do some smart optimization? 

It has to allocate a new ansistring.


Jonas


More information about the fpc-pascal mailing list