>>>>> "A" == Aleksei Guzev <aleksei.guzev / bigfoot.com> writes:

A> What are the parameters of rb_throw( const char*, VALUE ) ?
A> "throw" has only one parameter as I know


pigeon% cat b.rb
#!/usr/bin/ruby
result = catch (:error) {
   throw :error, [1, 2]
}
p result
pigeon% 

pigeon% b.rb
[1, 2]
pigeon% 

 The second parameter is the result returned by catch.

 bdb has an example of rb_throw, rb_catch


Guy Decoux