Project

General

Profile

Actions

Feature #512

closed

String#% behavior

Added by febuiles (Federico Builes) over 16 years ago. Updated almost 13 years ago.

Status:
Rejected
Target version:
[ruby-core:18405]

Description

=begin
Right now String#% is calling #to_ary on the its arguments for every case. Should it call it on cases where it only receives one argument?

Example:

 "%c" % 65   # the call's not really necessary but it's done here.

We'd like to have this clarified for Rubyspec and for Rubinius.
Thanks
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0