At Tue, 23 Jul 2019 18:08:46 -0700 (PDT), Brian Adkins wrote: > For example, if I wrote a Chez Scheme library, how would I use that > from w/in some Racket code I wrote?
After you get Chez Scheme's `eval`, you can do whatever you need at the Chez Scheme level. That includes loading Chez Scheme libraries and evaluating Chez Scheme expressions that produce functions. When you get a function back from Chez Scheme's `eval`, you can call it from Racket. Now that I think about it more, you'll have to take some care running Chez Scheme functions from Racket, because there are lots of ways to break Racket's assumptions at the Chez Scheme level. Perhaps the most significant requirement that is you should call Chez Scheme functions only under `call-with-system-wind` (which you'd have to get via `get-primitive`), because Racket threads and exceptions do not by default work with Chez Scheme's `dynamic-wind`. There are probably other things to pin down, and some of it could be packaged into a better FFI for calling Chez Scheme from Racket. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/5d37b51e.1c69fb81.198ad.7a52SMTPIN_ADDED_MISSING%40gmr-mx.google.com.