[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: let-location & modules
From: |
felix winkelmann |
Subject: |
[Chicken-users] Re: let-location & modules |
Date: |
Thu, 9 Oct 2008 12:07:20 +0200 |
On Wed, Oct 8, 2008 at 12:45 PM, Jörg F. Wittenberger
<address@hidden> wrote:
>
> Yesterday I tried to convert my code to the module system. But that
> failed. For the time being I managed to get along without modules.
>
> I've got the impression - though this is probably wrong - that I can
> either convert everything into modules or nothing at all.
You don't have to. But if you use extensions that provide modules, you'll
have to add the proper "import" forms.
>
> How do I mix modules and plain code? I'd like to convert them one by
> one.
>
Just import from the modules you'd like to use (at toplevel). If you convert
parts of your application code to modules, you have to make sure that
the inter-dependency (import) tree of modules is acyclic. This may be
difficult with code that lived previously in one big (global) namespace.
cheers,
felix
- [Chicken-users] -check-imports, F. Wittenberger, 2008/10/01
- Re: [Chicken-users] -check-imports, felix winkelmann, 2008/10/02
- [Chicken-users] let-location & modules, F. Wittenberger, 2008/10/07
- [Chicken-users] Re: let-location & modules, felix winkelmann, 2008/10/08
- [Chicken-users] Re: let-location & modules, F. Wittenberger, 2008/10/08
- [Chicken-users] Re: let-location & modules,
felix winkelmann <=
- [Chicken-users] Re: let-location & modules, F. Wittenberger, 2008/10/09
- [Chicken-users] Re: let-location & modules - modules for srfi-34&35 - 2 questions, F. Wittenberger, 2008/10/10
- [Chicken-users] how to pass a certain environment to "eval", F. Wittenberger, 2008/10/10
- [Chicken-users] Re: how to pass a certain environment to "eval", felix winkelmann, 2008/10/12
- [Chicken-users] Re: how to pass a certain environment to "eval", felix winkelmann, 2008/10/13
- [Chicken-users] module for srfi-35, F. Wittenberger, 2008/10/10
- [Chicken-users] Re: module for srfi-35, felix winkelmann, 2008/10/12
- [Chicken-users] Re: module for srfi-35, F. Wittenberger, 2008/10/13
- [Chicken-users] Re: module for srfi-35, felix winkelmann, 2008/10/14
- [Chicken-users] Re: module for srfi-35, F. Wittenberger, 2008/10/14