🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #561

Best way to set class slots

#561
From: Thomas A. Russ
Date: Wed, 16 Dec 1992 00:19
18 lines
1009 bytes
I was wondering what the best way to set a slot with allocation :class
is.  In particular, I wonder if there is any way to do this portably
without creating an instance of the class.

Initially I thought that using the CLASS-PROTOTYPE from the MOP would
be a good solution, but the documentation indicates that setting slots
on the prototype is a no-no.

Currently I just make an instance, set the slot and then throw the
instance away.  This just strikes me as wasteful.

Any better ideas?

--

Thomas A. Russ                                             tar@isi.edu    
USC/ISI, 4676 Admiralty Way, Marina del Rey, CA 90292      (310) 822-1511
Technical Details
Message-ID: <23063@venera.isi.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!usc!isi.edu!venera.isi.edu!tar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!usc!isi.edu!venera.isi.edu!tar
From: tar@ISI.EDU (Thomas A. Russ)
Newsgroups: comp.lang.clos
Subject: Best way to set class slots
Message-ID: <23063@venera.isi.edu>
Date: 16 Dec 92 00:19:37 GMT
Sender: news@isi.edu
Reply-To: tar@isi.edu
Distribution: comp
Organization: USC-ISI
Lines: 18