Does Ruby impose a limit on the size of a string? What about the size
of an array?
Thanks in advance.
Rand
Does Ruby impose a limit on the size of a string? What about the size
of an array?
Thanks in advance.
Rand
Rand Waltzman:
Does Ruby impose a limit on the size of a string?
As it seems, it doesn’t:
irb(main):009:0> ‘a’ * 1_000_000_000; nil
=> nil
irb(main):010:0> GC.start
=> nil
Kalman
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs