D
Dmitry V. Sabanin
Hi,
I've started making my own C extension to ruby, and found that strange
behavior:
class MyTest
def []=(key,val)
"my_own_return_value"
end
end
test = MyTest.new
p test[1] = "big"
Both ruby1.6 and ruby1.7 puts "my_own_return_value", but ruby1.8 puts
"big". I'm interested if this is right.
I know that it's kinda stupid to do something like this and I found that just
by accident, but anyway
I've started making my own C extension to ruby, and found that strange
behavior:
class MyTest
def []=(key,val)
"my_own_return_value"
end
end
test = MyTest.new
p test[1] = "big"
Both ruby1.6 and ruby1.7 puts "my_own_return_value", but ruby1.8 puts
"big". I'm interested if this is right.
I know that it's kinda stupid to do something like this and I found that just
by accident, but anyway