i am writing a ruby extension in C; i am using Ruby 1.6.7 and Debian 3.0.
here are a few problems i am running into.

1. requiring a library that does not contain its Init_foo() method gives a
strange error message like "tests/test.rb:3:in `require': (null) -
./c/lib/i686-linux/foo.so (LoadError)". The "(null)" looks like a %s being
passed a null pointer.

2. how do i get the selector of a message from the C method being called?
i need to alias a method and then find back with which name it was called.
this is equivalent to part of RCR #29
(http://www.rubygarden.org/article.php?sid=89)
but from C code instead.

3. how do i create a Proc from a C function pointer? what should be the
signature of that function? VALUE (*)(int,VALUE*,VALUE) ?

________________________________________________________________
Mathieu Bouchard                   http://hostname.2y.net/~matju