Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
PRE DETERMINE THE SIZE OF A STRING
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Brian Candler, post: 4664727"] Nope, strings are resized dynamically as required. But you could make your own class which does this. It could, for example, delegate to an underlying String object, intercepting calls which could make the string bigger, and either raise an error or truncate the error if it exceeds the chosen size. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
PRE DETERMINE THE SIZE OF A STRING
Top