Re: A little idiom I like

convert all forward slashes to backslashes. Also, the
various PathXXX
functions do NOT work with forward slashes.

Inasmuch as is possible, where Ruby provides these, it should
hide this distinction. I would hate to have to enter \ every
time I wanted to put two files together. (It would also
increase the mismatch between Ruby Windows and everywhere
else, so the more we can hide that the more portable we make Ruby.)


Oops. That should have said, “…convert all forward slashes to
backslashes on Windows”.

Ok, technically, it uses File::ALT_SEPARATOR if it has one. Otherwise,
it uses File::SEPARATOR.



This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
all copies of the communication and any attachments.