General

Profile

wwalker (Wayne Walker)

Issues

Activity

04/15/2010

04:56 AM Backport186 Bug #3147: gsub evaluates the passed in replacement string making results unpredictable when replacement string is dynamically generated
=begin
This at least needs to be documented clearly in gsub. Strings are normally only evaluated once, not twice.
...
wwalker (Wayne Walker)
02:29 AM Backport186 Bug #3147: gsub evaluates the passed in replacement string making results unpredictable when replacement string is dynamically generated
=begin
This bug also exists in :

jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d)
ruby 1.9.1p376 (2009-12-07...
wwalker (Wayne Walker)
01:52 AM Backport186 Bug #3147 (Rejected): gsub evaluates the passed in replacement string making results unpredictable when replacement string is dynamically generated
=begin
after the interpreter evaluates the replacement string (if it's a literal in "" or ''), gsub further evaluate...
wwalker (Wayne Walker)

Also available in: Atom