[fpc-pascal] Longstrings

Marco van de Voort marcov at stack.nl
Wed Jul 4 10:22:10 CEST 2012


In our previous episode, J?rgen Hestermann said:
> > How to put longstrings globally on?
> > I tried with {$h+} in project compiler settings (other) with no effect.
> Safest method is not to use the generic type "string" in your code.
> Instead use directly the string type that you need (i.e. "ansistring" or "unicodestring").

I wouldn't do that. That makes later migration unnecessary involved. Just
define an alias and use that everywhere.

But a -Sh in the compiler settings should go a long way. 

There is also a "tick" for {$H+} in the compiler options->"parsing". (but I
have v1.1 here, not fixes)



More information about the fpc-pascal mailing list