I have a Chez Scheme library "foo.ss":

(library (foo)
   (export bar)
   (import (rnrs))

   (define (bar) "hello"))


>From Chez Scheme:

$ chezscheme
Chez Scheme Version 9.5.4
Copyright 1984-2020 Cisco Systems, Inc.

> (eval '((lambda () (import (foo)) (bar))))
"hello"


A Racket program "call.rkt" which attempts to use the library:

#lang racket

(require ffi/unsafe/vm)

(vm-eval
 '((lambda () (import (foo)) (bar))))


$ racket call.rkt 
variable bar554 is not bound
  context...:
   body of "/home/andrew/prj/audit/compile/call.rkt"


What would be the right way to do this?

Thank you,

Andrew

-- 
This group is deprecated and retained as an archive. 

Racket discussions have moved to the Racket Discourse at  
https://racket.discourse.group/ .

---
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 [email protected].
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/40a8ebe9-f48f-47ed-9e2e-266aa02fa844n%40googlegroups.com.

Reply via email to