[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Using C++ Member Function with rb_protect
From:       Daniel Harple <dharple () generalconsumption ! org>
Date:       2006-08-08 20:57:53
Message-ID: 1C740AEE-254F-4F2D-B487-70B8E452B366 () generalconsumption ! org
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic