On Tue, Sep 08, 2009 at 09:19:14PM -0700, Brian Harvey wrote:
> > For example, what will you suggest a natural interface to
> > import Xlib?  It defines symbols like XK_A and XK_a,
> 
> This is a strong argument, that definitely made me think hard about my
> position; interfacing with That Language code does seem to require some
> degree of following its rules.
> 
> But I think the issues are more general than case-folding.  What if some
> C library exports the symbol car?  Is a Scheme program that interfaces
> with that library going to forgo using lists?

With a module system, the library could export 'car', and another library
could import the C library with either a prefix or simply omit 'car' from
the set of imported bindings.  I see no problem here.

> So I'm afraid that the FFI library is going to end up using strings to
> represent the foreign symbols anyway.

I don't see why that is necessary.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: pgpe7PsKszDIb.pgp
Description: PGP signature

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to