[fpc-pascal] Constant strings can't be longer than 255 chars

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Jul 7 19:42:46 CEST 2008


2008/7/7 Jonas Maebe <jonas.maebe at elis.ugent.be>:
>
> Because the scanner only handles shortstrings for speed reasons. You can
> construct longer strings by concatenating multiple shorter strings (they
> will be concatenated at compile time).
>
> someproc('this string can be 255 characters' + 'and this one as well');

Strange, but I don't know what the compiler everything does... So I
can live with your solution. :)  Thanks for the quick response.


Regards,
 - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list