--ERL4m3EWNClx+pIgPy5
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2006-08-09 at 06:03 +0900, Francis Cianfrocca wrote:
> 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).

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

--ERL4m3EWNClx+pIgPy5
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBE2ijuSuZBmZzm14ERAhQHAJ9lJ0mR7jl4gDNq7qbMQffr61x/tgCePWds
CBB+uQ4arp3fm6kpweoZBoYbC
-----END PGP SIGNATURE-----

--ERL4m3EWNClx+pIgPy5--