e$B@DLZ$G$9!#e(B
Enumerator e$B$re(B dup e$B$7$F;H$&$H0J2<$N$h$&$K%(%i!<$,=P$^$9!#e(B
~/c/bitclust % ruby-yarv -ve ‘"".lines.dup.to_a’
ruby 1.9.0 (2007-01-23 patchlevel 0) [x86_64-linux]
-e:1:in to_a': undefined local variable or method
call’ for
false:FalseClass (NameError)
from -e:1:in `’
initialize_copy e$B$,Dj5A$5$l$F$J$$$?$a$Ke(B Proc e$B$rJ]B8$7$H$/e(B
e$B%a%s%P$,e(B NULL e$B$K$J$C$F$k$s$8$c!<$J$$$+$H?dB,$7$^$9!#e(B
~ % grep initialize ~/src/ruby/enumerator.c
rb_raise(rb_eArgError, “uninitialized enumerator”);
enumerator_initialize(int argc, VALUE *argv, VALUE obj)
rb_define_method(rb_cEnumerator, “initialize”,
enumerator_initialize, -1);
~ %