chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Module


From: lowly coder
Subject: Re: [Chicken-users] Module
Date: Mon, 5 Oct 2009 20:46:08 -0700

what if my structure looks like

/work/
/work/bar.scm
/work/foo/
/work/foo/foo.scm

how do I "use" foo/foo.scm from bar.scm? *use foo/foo" does find foo/foo.scm

On Mon, Oct 5, 2009 at 7:43 PM, Kon Lovett <address@hidden> wrote:
>
> 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]