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
SETF methods and SETF functions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Vladimir Zolotykh  
View profile  
 More options Jan 2 2002, 12:41 pm
Newsgroups: comp.lang.lisp
From: Vladimir Zolotykh <gsm...@eurocom.od.ua>
Date: Wed, 02 Jan 2002 19:32:21 +0200
Local: Wed, Jan 2 2002 12:32 pm
Subject: SETF methods and SETF functions
Consider the following:

(defstruct s-1
  k)

(defmethod (setf set-s-k) (new (f s-1))
  (setf (foo-k f) new))

Could you tell me:

(1) What is the name of the GF this method defined on?

(2) How to write this method in the style
    (defgeneric foo (a b)
      (:method
      ;; .......
      ))

(2) How I can find this method e.g (FIND-METHOD ...

Also I'd like to know how to remove it but this is probably will be
obvious where I'll know answers to the Q above.

Closely related question is about SETF functions(e.g (DEFUN (SETF FOO)
...). Plain function could be introduced with DEFUN and could be
FMAKUNBOUNDed. What syntax for actions similar to FMAKUNBOUND used for
SETF functions ?

--
Vladimir Zolotykh                         gsm...@eurocom.od.ua


 
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.
Erik Naggum  
View profile  
 More options Jan 2 2002, 12:58 pm
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.net>
Date: Wed, 02 Jan 2002 17:58:28 GMT
Local: Wed, Jan 2 2002 12:58 pm
Subject: Re: SETF methods and SETF functions
* Vladimir Zolotykh <gsm...@eurocom.od.ua>
| (1) What is the name of the GF this method defined on?

  (setf set-s-k)

  Look up "function name" in the glossary.

///
--


 
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.
Vladimir Zolotykh  
View profile  
 More options Jan 3 2002, 10:31 am
Newsgroups: comp.lang.lisp
From: Vladimir Zolotykh <gsm...@eurocom.od.ua>
Date: Thu, 03 Jan 2002 17:29:00 +0200
Subject: Re: SETF methods and SETF functions
Thank you. Yesterday my first attempt was

  (find-method #'(setf set-s-k) '() (list (find-class s-1)))

but I've forgotten the built in class T. in the list of
specializers.This misled me and I decided (wrongly) that I use wrong
syntax for that.

Nevertheless I've learn subject better.

Erik Naggum wrote:

> * Vladimir Zolotykh <gsm...@eurocom.od.ua>
> | (1) What is the name of the GF this method defined on?

>   (setf set-s-k)

>   Look up "function name" in the glossary.

> ///
> --

--
Vladimir Zolotykh                         gsm...@eurocom.od.ua

 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »