• how to organize package?

    From steve@21:1/5 to Jinsong Zhao on Sun Jul 11 20:47:58 2021
    Jinsong Zhao <jszhao@yeah.net> writes:

    Hi there,


    I am a newbie to package in common lisp. I try to write a toy package that may
    help me to understand how to organize the source code file.


    just a tip, probably considered a bad idea; dump the packages until you
    need them. I compile everything in :cl-user before I start messing with packages...

    Here is the code in a file named "pack.lisp"

    #| start a comment

    (in-package "COMMON-LISP-USER")

    (defpackage "MFP"
    (:use "COMMON-LISP")
    (:export func))

    (in-package "MFP")

    end of comment
    |#


    This is considered ``bad form'' in many languages; in lisp rapid
    dewvelopment is the key.

    Also you can recompile and then reload in the same image.

    (progn (load "file") (compile 'func))


    I hope to run "func".
    (func)

    the repl is a tuff nut to crack in LISP...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)