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
b55eff8f
Commit
b55eff8f
authored
22 years ago
by
gerd
Browse files
Options
Downloads
Patches
Plain Diff
* src/code/error.lisp (condition-slot): Add documentation slot.
(define-condition): Parse :documentation.
parent
2048dc3a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/error.lisp
+16
-3
16 additions, 3 deletions
code/error.lisp
general-info/release-19a.txt
+3
-0
3 additions, 0 deletions
general-info/release-19a.txt
with
19 additions
and
3 deletions
code/error.lisp
+
16
−
3
View file @
b55eff8f
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/error.lisp,v 1.7
3
2003/04/
29 16:27:18 emarsden
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/error.lisp,v 1.7
4
2003/04/
30 07:10:09 gerd
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -412,7 +412,10 @@
(
allocation
nil
:type
(
member
:instance
:class
nil
))
;;
;; If :class allocation, a cons whose car holds the value.
(
cell
nil
:type
(
or
cons
null
)))
(
cell
nil
:type
(
or
cons
null
))
;;
;; Slot documentation.
(
documentation
nil
:type
(
or
null
string
)))
(
eval-when
(
compile
load
eval
)
(
setf
(
condition-class-cpl
(
kernel::find-class
'condition
))
...
...
@@ -735,7 +738,7 @@
(slot-name {slot-option value}*)
where slot-option is one of :READER, :WRITER, :ACCESSOR, :ALLOCATION,
:INITARG, :INITFORM, and :TYPE.
:INITARG, :INITFORM,
:DOCUMENTATION,
and :TYPE.
Each overall option is of the form
...
...
@@ -768,6 +771,7 @@
(
let*
((
spec
(
if
(
consp
spec
)
spec
(
list
spec
)))
(
slot-name
(
first
spec
))
(
allocation
:instance
)
(
documentation
nil
)
(
initform-p
nil
)
initform
)
(
collect
((
initargs
)
...
...
@@ -794,6 +798,14 @@
(
:initarg
(
initargs
arg
))
(
:allocation
(
setq
allocation
arg
))
(
:documentation
(
when
documentation
(
simple-program-error
"More than one slot :DOCUMENTATION in~% ~s"
spec
))
(
unless
(
stringp
arg
)
(
simple-program-error
"Slot :DOCUMENTATION is not a string in~% ~s"
spec
))
(
setq
documentation
arg
))
(
:type
)
(
t
(
simple-program-error
"Unknown slot option:~% ~S"
...
...
@@ -808,6 +820,7 @@
:readers
',
(
readers
)
:writers
',
(
writers
)
:initform-p
',initform-p
:documentation
',documentation
:initform
,
(
if
(
constantp
initform
)
`
',
(
eval
initform
)
...
...
This diff is collapsed.
Click to expand it.
general-info/release-19a.txt
+
3
−
0
View file @
b55eff8f
...
...
@@ -52,12 +52,15 @@ New in this release:
- Accessing arrays in compiled code with out-of-bounds indices
now signals a TYPE-ERROR.
- DECLARE no longer being a special operator.
- DEFINE-CONDITION accepts slot option :DOCUMENTATION.
* Numerous bugfixes:
- NSET-EXCLUSIVE-OR returns the same results as SET-EXCLUSIVE-OR
wrt to duplicate elements.
- Forms like (MULTIPLE-VALUE-BIND 'LIST) no longer trapping
an internal compiler error when compiled.
- PARSE-INTEGER signaling PARSE-ERROR.
- Compiler eliminating some type checks in safe code.
* Other changes:
...
...
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