[plt-scheme] Abuse of 299 FFI

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Mar 23 07:58:39 EST 2005

On Mar 23, Noel Welsh wrote:
> I want to be a sleazy C programmer.

An explicit goal is to make C sleaziness possible.

> Specifically, I want to cast a u32vector into a function pointer, so
> I can trick the 299 FFI into executing it for me.  Is this possible
> with the current FFI?

Yes -- you might need to tweak the tag of the pointer object, or
simply use a generic _pointer type.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.