[plt-scheme] Eli Barzilay's new FFI stuff

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Aug 7 21:22:06 EDT 2004

On Aug  7, Christopher Armstrong wrote:
> On Sat, 7 Aug 2004 19:22:54 -0400, Eli Barzilay <eli at barzilay.org> wrote:
> > You can convert the whole struct to a byte string (which doesn't add
> > any overhead), then look in that string beyond the header.  I'll need
> > to see if there is any other way to do this.
> 
> :-( Well, it'll have to do for now. Hmm, I'm getting some error about
> "undefined identifier: type:" when I try to use (ptr-ref the-string
> (_bytes o N)) for this purpose. Is that a bug in the _bytes macro?

The (_bytes ...) macro is something that should be used only in a
(_fun ...) construct.  You should use _bytes instead.

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


Posted on the users mailing list.