From: Markus Date: 2004-10-06T04:07:56+09:00 Subject: Re: String limits? On Tue, 2004-10-05 at 11:16, Charles Mills wrote: > Each Ruby String's length is stored in a long and Ruby won't compile > unless sizeof(long) == sizeof(void*) so Ruby Strings can't be bigger > than half the addressable memory size on your machine, since usually > LONG_MAX == ULONG_MAX / 2 > and void* can address up to ULONG_MAX (on machines ruby compiles on). Of course, the actual memory in your machine (even including swap space, etc.) can be orders of magnitude less than the "addressable memory size" on your machine. -- Markus