🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #442

Re: CLOS and packages?

#442
From: John D. Burger
Date: Fri, 22 Feb 1991 15:03
23 lines
1493 bytes
jln@portia.Stanford.EDU (Jared Nedzel) writes:

> I've got some questions about using CLOS and packages. I want to
> divide my code into several packages, exporting methods and classes
> as needed.

>   1) do I put the class names in the export list? This seems to
>      export the class, but not the accessors. (Do they also
>      need to be exported?)

It's important to understand that EXPORT and friends operate on
SYMBOLS, not classes or accessors or things that we name with symbols.
EXPORT doesn't know that the symbol FLINTSTONE names a class, and that
one wants the symbols FLINTSTONE-NAME and FLINTSTONE-AGE, which name
accessors, exported as well.

In particular, one might NOT want such behavior, in order, for
example, to keep internal accessors out of the interface to a module.
--
John Burger                                               john@mitre.org

"You ever think about .signature files? I mean, do we really need them?"
  - alt.andy.rooney
Technical Details
Message-ID: <1991Feb22.150318.166@linus.mitre.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!linus!linus!mingus!john
References: <1991Feb19.200529.28974@portia.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!linus!linus!mingus!john
From: john@mingus.mitre.org (John D. Burger)
Newsgroups: comp.lang.clos
Subject: Re: CLOS and packages?
Message-ID: <1991Feb22.150318.166@linus.mitre.org>
Date: 22 Feb 91 15:03:18 GMT
References: <1991Feb19.200529.28974@portia.Stanford.EDU>
Sender: news@linus.mitre.org (News Service)
Organization: The MITRE Corporation, Bedford, MA 01730
Lines: 23
Nntp-Posting-Host: mingus.mitre.org