[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: MenTaLguY <mental () rydia ! net>
Date: 2006-08-09 18:26:59
Message-ID: 1155148014.5853.5.camel () localhost ! localdomain
[Download RAW message or body]
On Wed, 2006-08-09 at 06:03 +0900, Francis Cianfrocca wrote:
> Is it possible to make Sandbox::eval_protect a static function? Because a=
s
> an instance method, it's prototype is not VALUE(*)(VALUE) but rather
> something like VALUE(*)(Sandbox&, VALUE).
Specifically, VALUE (Sandbox::*)(VALUE). Pointers to non-static methods
are actually a totally separate family of types to function pointers and
cannot be called without first using the .* or ->* operators to "bind"
them. This is similar to the difference between UnboundMethod and
Proc/Method in Ruby.
-mental
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic