Y
Yusuf Celik
Hi,
I wonder if something is wrong with the following code.
Because, it doesn't produce any output.
BTW, I am new to Ruby.
Regards
yc
include ObjectSpace
a=b=c="A"
define_finalizer(a, proc {|id| puts "Finalizer
#{ObjectSpace._id2ref(id)} on #{id}" })
define_finalizer(b, proc {|id| puts "Finalizer
#{ObjectSpace._id2ref(id)} on #{id}" })
define_finalizer(c, proc {|id| puts "Finalizer
#{ObjectSpace._id2ref(id)} on #{id}" })
I wonder if something is wrong with the following code.
Because, it doesn't produce any output.
BTW, I am new to Ruby.
Regards
yc
include ObjectSpace
a=b=c="A"
define_finalizer(a, proc {|id| puts "Finalizer
#{ObjectSpace._id2ref(id)} on #{id}" })
define_finalizer(b, proc {|id| puts "Finalizer
#{ObjectSpace._id2ref(id)} on #{id}" })
define_finalizer(c, proc {|id| puts "Finalizer
#{ObjectSpace._id2ref(id)} on #{id}" })