chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] how does extension specifiers work?


From: Michele Simionato
Subject: [Chicken-users] how does extension specifiers work?
Date: Sun, 12 Jun 2005 07:25:22 -0400

I was playing with  "set-extension-specifier!" and I think I am
missing something. Suppose I have a Scheme file called "x.ss"; then I
expected this
to work:

(eval-when (compile eval)
  (set-extension-specifier!
   'lib
   (lambda (spec old)
      (string-append (->string (cadr spec)) ".ss"))))

(use (lib x)); it should load "x.ss" ...

but I get 

Error: bad argument count - received 1 but expected 2

instead. Any idea of what I am doing wrong?

               Michele Simionato




reply via email to

[Prev in Thread] Current Thread [Next in Thread]