[Ruby 1.9 - Bug #409] (Open) Can't modify frozen ... の型

e$B%A%1%C%He(B #409 e$B$,Js9p$5$l$^$7$?!#e(B (by Shyouhei U.)


Bug #409: Cant modify frozen e$B$N7?e(B
http://redmine.ruby-lang.org/issues/show/409

e$B5/I<<Te(B: Shyouhei U.
e$B%9%F!<%?%9e(B: Open
e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Yukihiro M.
e$B%+%F%4%je(B: core
Target version:

e$B$A$c$s$He(Brescuee$B$7$F$?$O$:$Ne(BCant modify frozen
e$B$J$s$H$+Nc30$,JaB*$Ge(B
e$B$-$J$/$J$C$F$F5$$E$$$?$N$G$9$,!"e(B1.9e$B$G$Oe(BRuntimeErrore$B$K$J$C$F$$$^$9!#e(B

% trunk/bin/ruby -e[].freeze.clear
-e:1:in clear': can't modify frozen array (RuntimeError) from -e:1:in

e$B$`$m$se(B1.8e$B$G$Oe(BTypeErrore$B$G$9!#e(B

ruby_1_8/bin/ruby -e[].freeze.clear
-e:1:in `clear: cant modify frozen array (TypeError)
from -e:1

e$B$J$K$+M}M3$,$"$k$N$G$7$g$&$+e(B?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs