*a = *nil

*a = *nil e$B$Ge(B a e$B$,e(B [nil]
e$B$K$J$k$3$H$K5$$,$D$$$?$N$G$9$,!"$3$l$Ce(B
e$B$F$J$s$G$J$s$G$7$g$&e(B?

% ./ruby -ve ‘*a = *nil; *b = *[]; p a, b’
ruby 1.9.0 (2007-07-05 patchlevel 0) [i686-linux]
[nil]
[]

nil.to_splat e$B$Oe(B [] e$B$G$9$+$i!"e(B*a = *[]
e$B$HF1$8$K$J$k$O$:[email protected]$H;We(B
e$B$&$N$G$9$,!#e(B

[email protected]$G$9!#e(B

Tanaka A. wrote:

*a = *nil e$B$Ge(B a e$B$,e(B [nil] e$B$K$J$k$3$H$K5$$,$D$$$?$N$G$9$,!"$3$l$Ce(B
e$B$F$J$s$G$J$s$G$7$g$&e(B?

e$B!!%P%0$G$7$?!#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