Laurent Sansonetti
lsans****@apple*****
Sat Apr 12 16:56:18 JST 2008
Hi Scott, On Apr 11, 2008, at 3:52 PM, Scott Thompson wrote: > You folks must think I have nothing better to do than poke around > looking for documentation all day... > > I'm trying to read through some of the RubyCocoa source code and I > came across a call to the routine "rb_rescue2". This is, apparently, > part of the Ruby extensions mechanism, but I can't find documentation > anywhere that explains what the routine does. > > After much searching I finally found a description of rb_rescue in the > extensions README, but I have yet to find an explanation of > rb_rescue2. By deduction I assume that it's like rb_rescue, but it > takes an additional parameter that tells what kind of exceptions the > rescue clause should catch? > > At any rate, figuring out exactly what rb_rescue2 is all about is not > my main issue. I know this is only peripherally related to rubycocoa > development, but is there a resource on-line has good quality > documentation the ruby extensions mechanism and routines like > rb_rescue2? I am not aware of any good documentation regarding the Ruby C APIs except that section in the pickaxe which was suggested earlier, but it doesn't cover everything and it's a little bit outdated. If you can read C, I recommend reading the Ruby source code. Laurent