On Sat, Jul 12, 2014 at 11:42:00PM +0200, Felix Winkelmann wrote:
> > I think this may actually indicate two bugs: the functor complains
> > about unbound identifiers, but if I compile the following simple
> > program:
> > 
> > (use csi)
> > (toplevel-command 'blabla (lambda _ (print "blabla")))
> > 
> > I also get an error that "csi" can't be loaded.
> 
> I think you forgot to attach the file.

Just conforming to tradition :)

Here it is

Cheers,
Peter
-- 
http://www.more-magic.net
(functor (foo
          (csi-like (toplevel-command editor-command set-describer!)))
    (register-command!)

    (import scheme)

  (define (register-command! c x #!optional help)
    (toplevel-command c x (or help "No help defined"))))

(use csi)
(module foo-with-csi = (foo csi))

(import foo-with-csi)
(register-command! 'blabla (lambda _ (print "blabla")))
_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to