General

Profile

schouery (Rafael Schouery)

  • Login: schouery
  • Email: schouery@gmail.com
  • Registered on: 04/15/2009
  • Last sign in: 04/15/2009

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

04/15/2009

09:56 PM Ruby Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc.
=begin
I thought about that too.
I was think about other functions. sort, of course, is going to give you a
new array,
but what about functions that already knows that is not going to do
anything, like
[].reverse ?
Ruby gives you ...
schouery (Rafael Schouery)
05:46 AM Ruby Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc.
=begin
I did take a look in the problem:

static VALUE
rb_ary_flatten(int argc, VALUE *argv, VALUE ary)
{
int mod = 0, level = -1;
VALUE result, lv;

rb_scan_args(argc, argv, "01", &lv);
if (!NIL_P(lv)) level = NUM2...
schouery (Rafael Schouery)

Also available in: Atom