From: student_vienna@... (daniel) Date: 2003-04-17T23:42:48+09:00 Subject: Re: extension - redirect a block "ts" wrote in message news:200304171320.h3HDKGZ01634@moulon.inra.fr... > >>>>> "d" == daniel writes: > > > > * only rPAInit is a ruby method, the second function is just a C method > called. In this case you use a thread local variable. hm.... This looks good. rPAInit is a wrapping-c-method I called in ruby. > rPAInit() store the block (rb_thread_local_aset()) and the second > function retrieve it (rb_thread_local_aref()) and call it are this functions documented? There are some (bad) code-snippets in the internet. your solution looks fine, thx daniel