Re: [fpc-devel] Concatenating huge AnsiStrings

2024-06-21 Thread Bart via fpc-devel
On Fri, Jun 21, 2024 at 8:16 PM Marco van de Voort via fpc-devel wrote: > Probably terminate with a heap out of memory error. OK, that's better than silently failing! -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Concatenating huge AnsiStrings

2024-06-21 Thread Marco van de Voort via fpc-devel
Op 21-6-2024 om 19:39 schreef Bart via fpc-devel: Possibly not a real-world problem, but some pet-project of mine has to deal with it (at least in theory). What happens if you try to concatenate 2 huge ansistrings, such that Length(String 1) + Length(String 2) > High(SizeInt)? All this

Re: [fpc-devel] Concatenating huge AnsiStrings

2024-06-21 Thread Mattias Gaertner via fpc-devel
On 6/21/24 19:39, Bart via fpc-devel wrote: Hi, Possibly not a real-world problem, but some pet-project of mine has to deal with it (at least in theory). What happens if you try to concatenate 2 huge ansistrings, such that Length(String 1) + Length(String 2) > High(SizeInt)? All this

[fpc-devel] Concatenating huge AnsiStrings

2024-06-21 Thread Bart via fpc-devel
Hi, Possibly not a real-world problem, but some pet-project of mine has to deal with it (at least in theory). What happens if you try to concatenate 2 huge ansistrings, such that Length(String 1) + Length(String 2) > High(SizeInt)? All this assuming you have memory enough to perform such an