Actions
Bug #8359
closedIf p is a proc, p.call(x) can take a block, but p[x] cannot
Updated by Anonymous almost 11 years ago
- Status changed from Open to Rejected
=begin
You can pass a block to (({ #[] })) in two ways:
format[[1, 2], "\n", &proc {|c| "[ #{ c } ]"}]
or:
format.[]([1, 2], "\n") {|c| "[ #{ c } ]"}
=end
Updated by alexeymuranov (Alexey Muranov) almost 11 years ago
=begin
Ok, maybe this is not a bug report but a feature request. Is there a reason to not allow (({ p[x] do ...}))?
=end
Actions
Like0
Like0Like0