Re: CLOS class in different packages

dneu@xxxxxxx wrote:

I have a parent CLOS class and related generics defined in one
package, and have classes derived from the parent defined in other
packages. In order to access slots defined in the parent, from the
derived class, I had to either:

1. export them from the parent class, or
2. qualify them using the package name, e.g. parent::last-name

Option 1 seems to sort of "disconnect" the slot from it's class, and

"seems to sort of" IIANM translates as "does not" (and then you can take the I-do-not-really-mean-it antlers off disconnect).

Note that you /do/ "desire to access [the] slots" from a different package. Why making public something you want to be public constitutes "disconnect" needs clarification. :)

option 2 seems somewhat clumsy.

Is there another option?

Are you looking for that "friends" stuff from C++ (if I have that right, unless it was Java <g>). This is Lisp, we just shoot from the hip and do not worry about that stuff.



"Well, I've wrestled with reality for thirty-five
years, Doctor, and I'm happy to state I finally
won out over it." -- Elwood P. Dowd

"I'll say I'm losing my grip, and it feels terrific."
-- Smiling husband to scowling wife, New Yorker cartoon

Relevant Pages

  • Re: Pass variables from parent DTS to child DTS package...
    ... Pass variables from parent DTS to child DTS package... ... I have a parent DTS that calls a child DTS through ActiveX scripts. ...
  • RE: Vista update problem
    ... In my case it was the anti virus client causing KB941649 not to install ... Appl: detect Parent, Package: ... Appl: detectParent: package: ...
  • Sequence of SSSI Package Configuration.
    ... TYPE: from parent package, ... I need to load 1st the connectionString to configuration DB then connect to ... Information: 0x40016040 at DumpAccountingToFile: The package is attempting ...
  • RE: Vista update problem
    ... Appl: detect Parent, Package: ... Appl: detectParent: package: ... updates to install them manually ...
  • Re: Passing Variables to another package
    ... >> variables in the outer package, also known as the parent package, or in ... >> you description this is package A. You select the parent package ... >> variables that you want to be passed into the child package, ... >> existing global variables of child package. ...