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 setf v defparameter
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
 
Conrad  
View profile  
 More options Dec 20 2010, 1:35 pm
From: Conrad <drc...@gmail.com>
Date: Mon, 20 Dec 2010 10:35:48 -0800 (PST)
Local: Mon, Dec 20 2010 1:35 pm
Subject: Re: setf v defparameter
Hi Old-RPGer:

Actually, defparameter is introduced on page 22. You use defparameter
to define new "global" variables (can also be done with defvar) and
use setf to set existing variables.

There's a lot of history as to why these two operations are treated
separately in Common Lisp. The basic gist of it is that it's useful to
know if you're accidentally redefining variables. See the discussions
of defvar and "generic setters" in the book for more detail (though my
book doesn't cover 100% of the esoteric details of this issue.)

On Dec 18, 8:12 pm, Old-RPGer <ronald.gi...@comcast.net> wrote:

> Page 27 introduced setf (smaller) & (bigger).  Page 28 (start-over)
> reverts to defparameter.  What's the virtue of using setf v
> defparameter?


 
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.