Article View: comp.lang.clos
Article #20Re: Portability: Adding a slot to a class
From: Nicolas Rouquette
Date: Fri, 31 Jul 1992 22:47
Date: Fri, 31 Jul 1992 22:47
41 lines
2130 bytes
2130 bytes
In article <keSKjBC00iQQ0AHUcK@andrew.cmu.edu>, gh1h+@andrew.cmu.edu (Gary Hooyman) writes: |> I recently faced the same problem, and at first my solution was to |> maintain protability and implement my own metainfo class. This class |> had attributes that managed class name, slot names, etc and had methods |> for redefining a class given a prototype instance using eval and quotes |> that did not require any calls to metaobject protocol methods. My colleague, Len Charest, had the same suggestion. We didn't like it. |> |> I have since reimplemented this to use MOP methods because: |> |> Much of it is available in Lucid 4.02 (on DEC) |> Implementation became cleaner because clos was managing |> the metainformation so I didn't have to - my code was not |> robust or general enough to do the job very well |> MOP seems to be becomming standardized |> (this I say only as an outsider looking in - it may or may |> not be true, but it is my observation) I agree that's the way to go. |> |> |> If you want to see any code examples, I can send them, but I If possible, please send or post examples and the mop solution. -- Nicolas Rouquette Artificial Intelligence Group Jet Propulsion Laboratory California Institute of Technology 4800 Oak Grove Drive M/S 525-3660 Pasadena, CA 91109 phone: (818) 306-6171 fax: (818) 306-6912 Email: rouquett@aig.jpl.nasa.gov
Technical Details
Message-ID:
<1992Jul31.224711.25800@jpl-devvax.jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ufo!Aig.Jpl.Nasa.Gov!rouquettReferences:
<1992Jul30.234218.28623@jpl-devvax.jpl.nasa.gov> <keSKjBC00iQQ0AHUcK@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ufo!Aig.Jpl.Nasa.Gov!rouquett From: rouquett@Aig.Jpl.Nasa.Gov (Nicolas Rouquette) Subject: Re: Portability: Adding a slot to a class Message-ID: <1992Jul31.224711.25800@jpl-devvax.jpl.nasa.gov> Sender: usenet@jpl-devvax.jpl.nasa.gov (For NNTP so rrn will be able to post) Nntp-Posting-Host: ai-cyclops Reply-To: rouquett@aig.jpl.nasa.gov Organization: NASA/Jet Propulsion Laboratory References: <1992Jul30.234218.28623@jpl-devvax.jpl.nasa.gov> <keSKjBC00iQQ0AHUcK@andrew.cmu.edu> Date: Fri, 31 Jul 1992 22:47:11 GMT Lines: 41