m_func1 and m_func2 are both methods of a ruby class or module; m_func1 is implemented as:
VALUE
m_func1(VALUE self) {
m_func2();
}
the problem is if a block is passed to m_func1 it seems to also be passed onto m_func2, as they’re both running
in the same ‘ruby frame’ (scope, local variables, self etc). How to prevent this [...]
Filed under: programming | Tagged: C, C extension, ruby | Leave a Comment »