chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Like 'include', but different?


From: kooda
Subject: Re: [Chicken-users] Like 'include', but different?
Date: Sat, 25 Aug 2018 13:10:36 +0200

Mark Carter <address@hidden> wrote:
> I have code where I 'include' other files. Suppose I compile that file. 
> As part of execution, it will try to load those other files, which isn't 
> what I want.
> 
> Is there a way of telling chicken that during the interpretation or 
> compilation, the file should be loaded, but during execution, don't load 
> the files?
> 

The `include` form should be what you need here. I don’t really understand
the problem you’re having. Could you post a little example of it?

Here is how (include "file.scm") should behave:
- when compiled, the include form will be rewritten with the content of the
  specified file
- when interpreted, it will behave like (load "file.scm")



reply via email to

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