Namespaces of class slot names and accessors
From: Paolo Amoroso (amoroso_at_mclink.it)
Date: 04/25/04
- Next message: Scott McKay: "Re: Namespaces of class slot names and accessors"
- Previous message: Rob Warnock: "Re: My LOOP is ugly"
- Next in thread: Scott McKay: "Re: Namespaces of class slot names and accessors"
- Reply: Scott McKay: "Re: Namespaces of class slot names and accessors"
- Reply: Kalle Olavi Niemitalo: "Re: Namespaces of class slot names and accessors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Apr 2004 13:35:47 +0200
To which namespace do class slot names belong? And slot accessors?
More specifically, I would like to know whether it is possible for
different classes--in the same package--to have slots with the same
names, such as:
(defclass class1 ()
((same-slot :initarg :same-slot)))
(defclass class2 ()
((same-slot :initarg :same-slot)))
or for different classes to have slots with the same accessor names:
(defclass class1 ()
((class1-slot :initarg :class1-slot :accessor same-accessor)))
(defclass class2 ()
((class2-slot :initarg :class2-slot :accessor same-accessor)))
Paolo
-- Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
- Next message: Scott McKay: "Re: Namespaces of class slot names and accessors"
- Previous message: Rob Warnock: "Re: My LOOP is ugly"
- Next in thread: Scott McKay: "Re: Namespaces of class slot names and accessors"
- Reply: Scott McKay: "Re: Namespaces of class slot names and accessors"
- Reply: Kalle Olavi Niemitalo: "Re: Namespaces of class slot names and accessors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]