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
3992809b
Commit
3992809b
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Protected SET against *KEYWORD-PACKAGE* being unbound, which can happen
while running initial top-level forms.
parent
adf84605
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/symbol.lisp
+10
-10
10 additions, 10 deletions
code/symbol.lisp
with
10 additions
and
10 deletions
code/symbol.lisp
+
10
−
10
View file @
3992809b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/symbol.lisp,v 1.
9
1992/0
2/24 01:46:1
9 wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/symbol.lisp,v 1.
10
1992/0
3/02 17:22:4
9 wlott Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -48,15 +48,15 @@
...
@@ -48,15 +48,15 @@
"VARIABLE must evaluate to a symbol. This symbol's special value cell is
"VARIABLE must evaluate to a symbol. This symbol's special value cell is
set to the specified new value."
set to the specified new value."
(
declare
(
type
symbol
variable
))
(
declare
(
type
symbol
variable
))
(
etypecase
variable
(
cond
((
null
variable
)
(
null
(
error
"Nihil ex nihil, can't set NIL."
))
(
error
"Nilhil ex nilhil (Can't set NIL)."
)
)
((
eq
variable
t
)
((
member
t
)
(
error
"Veritas aeterna, can't set T."
)
)
(
error
"Can't set T."
)
)
((
and
(
boundp
'*keyword-package*
)
(
keyword
(
keyword
p
variable
))
(
error
"Can't set keywords."
))
(
error
"Can't set keywords."
))
(
symbol
(
t
(
%set-symbol-value
variable
new-value
))))
(
%set-symbol-value
variable
new-value
))))
(
defun
%set-symbol-value
(
symbol
new-value
)
(
defun
%set-symbol-value
(
symbol
new-value
)
(
%set-symbol-value
symbol
new-value
))
(
%set-symbol-value
symbol
new-value
))
...
...
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