You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When duplicate replacement chars are given, the first replacement is used when no named args are present but last (or later?) replacement is used when there are any named args
16:36 IOninja m: say "abc".trans("abc" => "XYZ", :meows)
16:36 camelia rakudo-moar 266f34: OUTPUT«XYZ»
16:36 IOninja m: say "abc".trans("aba" => "XYZ", :meows)
16:36 camelia rakudo-moar 266f34: OUTPUT«ZYc»
16:36 IOninja m: say "abc".trans("aba" => "XYZ")
16:36 camelia rakudo-moar 266f34: OUTPUT«XYc»
16:37 ufobat ha :)
16:38 IOninja ufobat: looks like indeed a bug (inconsistency) on how duplicates are processed between .trans with named args and without. It follows one codepath without any named args and if there are any, changes the replacement to list form and that apparently uses different path for dups
16:38 ufobat should i, will you create a bug report?
Migrated from rt.perl.org#130762 (status was 'new')
Searchable as RT130762$
The text was updated successfully, but these errors were encountered: