From: Yukihiro Matsumoto Date: 2005-03-15T02:35:31+09:00 Subject: Re: rb_reg_quote weirdness Hi, In message "Re: rb_reg_quote weirdness" on Mon, 14 Mar 2005 06:42:37 +0900, Nikolai Weibull writes: |My documentation for Regexp::quote(str) says that a copy of str is |returned, yet if str doesn't contain any metacharacters, str itself is |returned: |is this how it should be, or should str be copied at this point?, For efficiency, avoiding unnecessary copy is sought. For consistency, and safety (from in-place string modification), all time copy is better. I chose the former. But I'm still open for input. matz.