[plt-scheme] (lib "foreign.ss") and vararg C functions

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Oct 7 17:54:49 EDT 2005

On Oct  7, Matthias Felleisen wrote:
> So one could create an "overloaded" printf library that picks up
> from C?

Yes -- guessing the type according to the Scheme value.  The simple
approach would be to look at the input types, construct a foreign
interface and immediately apply it.  But it'll be better to cache the
resulting interfaces.

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

Posted on the users mailing list.