real-world example where you’d want to access particular
characters
of a string.If that is the case, then why doesn’t Ruby remove all
substring notation?
Because it would be a disaster. You want real world examples? Take a
look at any of the pure Ruby code in the Win32Utils examples where I
have to take slices out of character buffers and pack or unpack them
into the appropriate value. I’m guessing this might apply to Ruby/DL as
well.
I’m sure there are many people using character access in “real world”
code.
Regards,
Dan
This communication is the property of Qwest and may contain confidential
or
privileged information. Unauthorized use of this communication is
strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
destroy
all copies of the communication and any attachments.