chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Module


From: Kon Lovett
Subject: Re: [Chicken-users] Module
Date: Mon, 5 Oct 2009 19:43:14 -0700


On Oct 5, 2009, at 7:28 PM, lowly coder wrote:

suppose foo.scm:

(module foo
 (foo1)
 ... )

bar.scm:

(module bar
 (....)
 (import foo) ; this doesn't work ... where do I have to place foo.scm
   (require-library foo)
)

also-does-not-work.scm:
(module bar
 (...)
 (load "foo.scm")
 (import foo)
..
)

so given that i have foo.scm ;;; what do I have to do to make (import foo) work?

If you will be using all exports of foo w/o rename or prefix then this is easier:

(module bar
  (...)
  (use foo) ;(require-extension foo)
)

Import is purely syntactic. Best to read as '(import-identifiers foo)' rather than '(import-library foo)'.


Thanks!


_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users

Best Wishes,
Kon







reply via email to

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