Paul Harrington wrote:
> Jeffrey L. Taylor wrote:
>> Am I correct in assuming that the max length of a string is 65,535 on a 
>> 32 bit
>> platform?  Anyway around this, other classes, 64 bit platform?
>> 
>> TIA,
>>   Jeffrey
> 
> What would make you assume this? Simplest demonstration:
> 
> irb(main):004:0> s = "a"*70000;nil
> => nil
> irb(main):005:0> s.size
> => 70000
> irb(main):006:0>
> 
> Also, keep in mind Ruby has no separate representation for raw 8bit 
> data. Only Strings. How would it be able to store a 65KB+ file in 
> memory?
> 
> The only limit to Ruby string is is available memory.

btw that irb session was
irb(main):001:0> RUBY_VERSION
=> "1.9.1"
irb(main):002:0> RUBY_PLATFORM
=> "i386-mingw32"
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to