Re: with-slots usage question
"Robert P. Goldman" <[email protected]> Mon, 10 Nov 2003 14:15:37 -0600
| Newsgroups | gmane.lisp.clump |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Nikodemus" == Nikodemus Siivola <[email protected]> writes: Nikodemus> On Mon, Nov 10, 2003 at 08:00:25PM +0100, Tim Moore wrote: >> >regular function by that name? The reason I've been prepending the >> >base-class name to my accessor functions is that I've been worried >> >about defining functions like name, size, length, etc. >> That's what packages are for :) Nikodemus> Well, yes, Except that almost every package uses the Nikodemus> COMMON-LISP package, so you still lose if you'd like Nikodemus> accessors called LENGTH, STRING, etc. I feel awfully stupid asking this, but.... Can't you just shadow LENGTH and STRING in your package if you want to override them? So I can make a generic function for LENGTH that has as its default method (for type T) COMMON-LISP:LENGTH, and put whatever other methods I want for it. Yes? R