string length

BlitzPlus Forums/BlitzPlus Programming/string length

Mr Brine(Posted 2004) [#1]
how long can the longest string be?

Mr Brine


soja(Posted 2004) [#2]
I believe Blitz stores string length as an integer, so it should be something like 2^32 (4 billion +) characters.

(Of course long before you reached that limitation, you'd probably have run out of memory...)


Mr Brine(Posted 2004) [#3]
cheerz man


Kanati(Posted 2004) [#4]
I thought blitz had a limit of 64k on strings........


Mr Brine(Posted 2004) [#5]
I'll have to try a test


xlsior(Posted 2004) [#6]
I thought blitz had a limit of 64k on strings


No, they are pretty much just limited to the amount of available memory you have.


Andy_A(Posted 2004) [#7]
I believe string length is limited to 2^31-1 characters in length since Blitz does not support unsigned integers. You can conceivably create a string this large. Windows would begin to start using virtual memory (hard disk) once available physical RAM was exhausted. The other possibility is that Blitz implements it's own a memory management routines internally, which would be known only by Mark and those with enough free time and patience to test the limits.