Re: [Cleanup] Int vs Long (2nd part)

From: matz@... (Yukihiro Matsumoto)
Date: 2002-08-22 23:26:51 UTC
List: ruby-core #343
Hi,

In message "Re: [Cleanup] Int vs Long (2nd part)"
    on 02/08/23, Michal Rokos <m.rokos@sh.cvut.cz> writes:

|> > @@ -1690,14 +1685,16 @@
|> >  rb_ary_uniq_bang(ary)
|> >      VALUE ary;
|> >  {
|> > -    VALUE hash = ary_make_hash(ary, 0);
|> > +    VALUE hash;
|> >      VALUE *p, *q, *end;
|> >  
|> > +    rb_ary_modify(ary); 
|> > +
|> > +    hash = ary_make_hash(ary, 0);
|> > +
|> 
|> Which should be done first?
|
|	I hope this one (not the current) is the right one.

I think so too.  The current bahavior creates an hash even when the
array is frozen.

							matz.

In This Thread