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

2008-07-07 Thread Graeme Geldenhuys
2008/7/7 Jonas Maebe <[EMAIL PROTECTED]>: > > 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

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

2008-07-07 Thread Florian Klaempfl
Jonas Maebe schrieb: On 07 Jul 2008, at 18:26, Graeme Geldenhuys wrote: I've got a few functions defined with 'const' string parameters. When I tried to pass a large string, I got the following error message. Why is that? Because the scanner only handles shortstrings for speed reasons. You c

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

2008-07-07 Thread Jonas Maebe
On 07 Jul 2008, at 18:26, Graeme Geldenhuys wrote: I've got a few functions defined with 'const' string parameters. When I tried to pass a large string, I got the following error message. Why is that? Because the scanner only handles shortstrings for speed reasons. You can construct longer