Lisp importing/loading file

后端 未结 2 655
别跟我提以往
别跟我提以往 2021-02-12 13:28

Is there a way in Lisp to include code from other Lisp files?

For example, in C++ I can do this:

#include 
#include 
#inclu         


        
2条回答
  •  既然无缘
    2021-02-12 13:53

    Use standard functions like LOAD and COMPILE-FILE.

    ANSI Common Lisp also has a function REQUIRE.

    If you use as 'system' maintenance tool as an extension to Common Lisp, then you can also load or compile a whole 'system'. A 'system' is a collection of files and subsystems for which operations like load and compile are defined.

提交回复
热议问题