$! == 8

e$B0J2<$N$h$&$K$9$k$H!"e(B$! e$B$,e(B 8
e$B$K$J$k$N$G$9$,!"JQ$G$O$J$$$G$7$ge(B
e$B$&$+!#e(B

% ./ruby -v -e ’
t = Thread.new {
begin
sleep 2
ensure
p $!, $!.class
end
}
sleep 1
t.kill
t.join

ruby 1.9.0 (2007-12-15 patchlevel 0) [i686-linux]
8
Fixnum

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