Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
c4a5a5ce
Commit
c4a5a5ce
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Ack. Maybe this time I got defsetter correct.
parent
d2c88cbc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/macros.lisp
+6
-7
6 additions, 7 deletions
code/macros.lisp
with
6 additions
and
7 deletions
code/macros.lisp
+
6
−
7
View file @
c4a5a5ce
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.1
5
1990/11/19 06:
18:20
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.1
6
1990/11/19 06:
53:12
wlott Exp $
;;;
;;;
;;; This file contains the macros that are part of the standard
;;; This file contains the macros that are part of the standard
;;; Spice Lisp environment.
;;; Spice Lisp environment.
...
@@ -488,24 +488,23 @@
...
@@ -488,24 +488,23 @@
"Like Get-Setf-Method, but may return multiple new-value variables."
"Like Get-Setf-Method, but may return multiple new-value variables."
(
get-setf-method
form
environment
))
(
get-setf-method
form
environment
))
(
defun
defsetter
(
fn
rest
env
)
(
defun
defsetter
(
fn
rest
)
(
let
((
arglist
(
car
rest
))
(
let
((
arglist
(
car
rest
))
(
arglist-var
(
gensym
"ARGS-"
))
(
arglist-var
(
gensym
"ARGS-"
))
(
new-var
(
car
(
cadr
rest
))))
(
new-var
(
car
(
cadr
rest
))))
(
multiple-value-bind
(
multiple-value-bind
(
body
local-decs
doc
)
(
body
local-decs
doc
)
(
parse-defmacro
arglist
arglist-var
(
cddr
rest
)
fn
'defsetf
(
parse-defmacro
arglist
arglist-var
(
cddr
rest
)
fn
'defsetf
)
:environment
env
)
(
values
(
values
`
(
lambda
(
,
arglist-var
,
new-var
)
`
(
lambda
(
,
arglist-var
,
new-var
)
,@
local-decs
,@
local-decs
,
@
body
)
,
body
)
doc
))))
doc
))))
)
; End of Eval-When.
)
; End of Eval-When.
(
defmacro
defsetf
(
access-fn
&rest
rest
&environment
env
)
(
defmacro
defsetf
(
access-fn
&rest
rest
)
"Associates a SETF update function or macro with the specified access
"Associates a SETF update function or macro with the specified access
function or macro. The format is complex. See the manual for
function or macro. The format is complex. See the manual for
details."
details."
...
@@ -522,7 +521,7 @@
...
@@ -522,7 +521,7 @@
(
cerror
"Ignore the extra items in the list."
(
cerror
"Ignore the extra items in the list."
"Only one new-value variable allowed in DEFSETF."
))
"Only one new-value variable allowed in DEFSETF."
))
(
multiple-value-bind
(
setting-form-generator
doc
)
(
multiple-value-bind
(
setting-form-generator
doc
)
(
defsetter
access-fn
rest
env
)
(
defsetter
access-fn
rest
)
`
(
eval-when
(
load
compile
eval
)
`
(
eval-when
(
load
compile
eval
)
(
setf
(
info
setf
inverse
',access-fn
)
nil
)
(
setf
(
info
setf
inverse
',access-fn
)
nil
)
(
setf
(
info
setf
expander
',access-fn
)
(
setf
(
info
setf
expander
',access-fn
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment