[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] csc, modules, (require), (import)
From: |
Dan |
Subject: |
[Chicken-users] csc, modules, (require), (import) |
Date: |
Tue, 9 May 2006 10:27:12 -0700 (PDT) |
Hi, a few more things I find unexplainable below;
again, the source files are
;; mod1.scm
(module mod1 (f1)
(define (f1 x) x))
;; x.scm
(require 'mod1) (import mod1)
(display f1) (newline)
(define (f2 x) x)
(repl)
csc -R syntax-case -sv mod1.scm
csc -R syntax-case -v x.scm
1) mv mod1.so /tmp
./x
Error: (module) during expansion of (module ...) -
modules are not supported
Call history:
require <--
2) # with mod1.so in current dir
mv mod1.scm /tmp
csi x.scm
; loading /opt/chicken/lib/chicken/syntax-case.so ...
; loading
/opt/chicken/lib/chicken/syntax-case-chicken-macros.scm
...
; loading x.scm ...
; loading ./mod1.so ...
; visiting mod1.so ...
Error: illegal character in line 5: #\{
3) # with mod1.so, mod1.scm in current dir
csi
#;1> (require 'mod1)
; loading ./mod1.so ...
#;2> (import mod1)
; visiting mod1.scm ...
Why is the source "visited" if the .so library is
available?
-- Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- [Chicken-users] csc, modules, (require), (import),
Dan <=