From: Francis Cianfrocca Date: 2006-08-09T06:03:54+09:00 Subject: Re: Using C++ Member Function with rb_protect ------=_Part_29865_10157305.1155071028575 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Is it possible to make Sandbox::eval_protect a static function? Because as an instance method, it's prototype is not VALUE(*)(VALUE) but rather something like VALUE(*)(Sandbox&, VALUE). On 8/8/06, Daniel Harple wrote: > > On Aug 8, 2006, at 4:45 PM, Francis Cianfrocca wrote: > > > What happens if you remove the & in this line: > > > > VALUE val = rb_protect(&Sandbox::eval_protect, > > I get this compile error: > > test.cpp: In member function 'VALUE Sandbox::eval(char*)': > test.cpp:15: error: argument of type 'VALUE (Sandbox::)(VALUE)' does > not match 'VALUE (*)(VALUE)' > > -- Daniel > > > ------=_Part_29865_10157305.1155071028575--