Is using units and modules together supported? I'd like to use modules but don't want to have to install them as eggs.

I have tried this:

=====main.scm=====
(declare (uses other))
(import other)

(other-print "Hello")
======end========

=====other.scm=====
(declare (unit other))

(module other
   (other-print)
 (import scheme chicken)
 (define (other-print arg)
   (print "Got: " arg)))

(import other)
======end======

Compile like this:

csc other.scm -c
csc other.o main.scm

===============
It won't let me import other:

Syntax error (import): cannot import from undefined module

        other

        Expansion history:

        <syntax>    (##core#begin (import other))
        <syntax>    (import other)        <--
================
However if I comment out the (import other) I can call other-print like this:

(other#other-print "Hello")

and it works.
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to