Subject: Re: What's up with IEEE Scheme?
From: (Rob Warnock)
Date: 18 Oct 2000 05:09:39 GMT
Newsgroups: comp.lang.scheme
Message-ID: <8sjbaj$anmb3$>
Jonas Wissting <wiss@eelwing.arda> wrote:
| (Rob Warnock) writes:
| > Plus, every implementation of Scheme that I know of makes it almost
| > *trivial* to link in your own libraries of C code, often at runtime,
| How do I do this in mzscheme? I have browsed the manual but have not
| found anything.

Ahhh... probably the wrong manual. You won't find it in the "PLT MzScheme:
Language Reference Manual" <URL:
doc/mzscheme/index.htm>, but you *will* find it right at the top of the
"Inside PLT MzScheme" manual <URL:
doc/insidemz/index.htm>, specifically:

	Writing MzScheme Extensions
	To write a C/C++-based extension for MzScheme, follow these steps: 

There's a recipe for compiling a shared library, including required entry
points. Once you've compiled it, you can link it in to MzScheme at runtime
with (load-extension "") [or "foo.dll", I guess, on Windows].

I use MzScheme "extensions" all the time. Very handy...


p.s. You'll probably need to read at least some of the other sections,
too, in order to see how to access & create MzScheme objects, call Scheme
code from C code, etc.

Rob Warnock, 31-2-510
Network Engineering
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043