Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!ll.mit.edu!vdd.VLSI.LL.MIT.EDU!bloom-beacon.mit.edu!gatech!howland.reston.ans.net!pipex!uknet!festival!edcogsci!jeff
From: jeff@aiai.ed.ac.uk (Jeff Dalton)
Subject: Re: Copying CLOS instance?
Message-ID: <CzFKsn.6xF@cogsci.ed.ac.uk>
Sender: usenet@cogsci.ed.ac.uk (C News Software)
Nntp-Posting-Host: bute-alter.aiai.ed.ac.uk
Organization: AIAI, University of Edinburgh, Scotland
References: <LGM.94Nov9082012@polaris.ih.att.com> <CzDnEv.4op@cogsci.ed.ac.uk> <BUFF.94Nov16235726@pravda.world>
Date: Thu, 17 Nov 1994 21:24:23 GMT
Lines: 18

In article <BUFF.94Nov16235726@pravda.world> buff@pravda.world (Richard Billington) writes:
>In article <CzDnEv.4op@cogsci.ed.ac.uk> jeff@aiai.ed.ac.uk (Jeff Dalton) writes:
>
>   But I'd be happy to write my own copy fn if I could just get at all
>   slots in a reasonable way.  I realize, of course, that people
>   sometimes argue that what's a slot is application-specific (maybe
>   some slots are stored off in hash tables someplace).  That kind
>   of reasoning has been used against a number of useful things.
>
>Well, I'm a bit of an innocent with regards to the Metaobject
>Protocol, but I thought that's what it was all about. There's an MP
>function on standard-class type class called class-slots.
>(class-slots (find-class '<class>)) would give you a list of all the
>slots accessable in objects of class <class>.

But it's not portable.  There's no standard MOP.

-- jeff
