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
056a4255
Commit
056a4255
authored
27 years ago
by
pw
Browse files
Options
Downloads
Patches
Plain Diff
Add define-condition UNBOUND-SLOT. Default method for slot-unbound
now signals that condition as required by ANSI spec.
parent
d4172965
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
pcl/slots.lisp
+11
-1
11 additions, 1 deletion
pcl/slots.lisp
with
11 additions
and
1 deletion
pcl/slots.lisp
+
11
−
1
View file @
056a4255
...
...
@@ -27,6 +27,16 @@
(
in-package
:pcl
)
;;; ANSI CL condition for unbound slots.
(
define-condition
unbound-slot
(
cell-error
)
((
instance
:reader
unbound-slot-instance
:initarg
:instance
)
(
slot
:reader
unbound-slot-slot
:initarg
:slot
))
(
:report
(
lambda
(
condition
stream
)
(
format
stream
"The slot ~S is unbound in the object ~S"
(
unbound-slot-slot
condition
)
(
unbound-slot-instance
condition
)))))
(
defmethod
wrapper-fetcher
((
class
standard-class
))
'std-instance-wrapper
)
...
...
@@ -355,7 +365,7 @@
instance
))
(
defmethod
slot-unbound
((
class
t
)
instance
slot-name
)
(
error
"The slot ~S is unbound in the object ~S."
slot-nam
e
instance
))
(
error
'unbound-slot
:slot
slot-name
:instanc
e
instance
))
(
defun
slot-unbound-internal
(
instance
position
)
(
slot-unbound
(
class-of
instance
)
instance
...
...
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