Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion making virtual functions in CL
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
joachim  
View profile  
 More options Jan 13 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: joac...@kraut.bc.ca
Date: 1999/01/13
Subject: Re: making virtual functions in CL

David Bakhash <ca...@mit.edu> writes:

> I'm trying to figure out how to make a virtual function.
> i.e. suppose I have a CLOS class called `entry':

> (defclass entry () ())

> and I just want to insure that each entry has a method called `id'
> so that for all subclasses of entry I can do:

> (id my-entry)

(defmethod id ((self entry))
   'entry-id)

(defmethod id ((self my-entry))
   'my-entry-id)

Joachim

--
joac...@kraut.bc.ca      (http://www.kraut.bc.ca)
joac...@mercury.bc.ca    (http://www.mercury.bc.ca)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.