Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"One Architecture, One OS" also translates as "One Egg, One Basket".


devel / comp.lang.lisp / Re: how to organize package?

SubjectAuthor
o Re: how to organize package?steve

1
Re: how to organize package?

<84o8b81hoh.fsf@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16642&group=comp.lang.lisp#16642

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 11 Jul 2021 19:47:58 -0500
From: sgonedes1977@gmail.com (steve)
Newsgroups: comp.lang.lisp
Subject: Re: how to organize package?
References: <ro4slo$1hn9$1@adenine.netfront.net>
Date: Sun, 11 Jul 2021 20:47:58 -0400
Message-ID: <84o8b81hoh.fsf@gmail.com>
Organization: Loft - a Gnu/Linux system
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:0jd1WGiAf8NA5Zix7RObVwKwwpI=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 43
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-TtV9A0YMpZIeT3RRXCEVTCLMASge0B0n+QuM5iSZzZjT6p5nNzVwT0dfnydghnKIje9CpV6o9IqMlE8!E0vpuL1nsvm8L7xhJwNaX2cf9bhfPAEGvGVA5gvC8aKNjkNfcA==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1913
 by: steve - Mon, 12 Jul 2021 00:47 UTC

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...


devel / comp.lang.lisp / Re: how to organize package?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor