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
11be5bf7
Commit
11be5bf7
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed %%typep of (satisfies (lambda (obj) ..)) to explicitly coerce the
thing into a function instead of trying to funcall it.
parent
7dd003b0
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/pred.lisp
+11
-3
11 additions, 3 deletions
code/pred.lisp
with
11 additions
and
3 deletions
code/pred.lisp
+
11
−
3
View file @
11be5bf7
...
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pred.lisp,v 1.1
6
1991/0
2/08 13:34:47 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pred.lisp,v 1.1
7
1991/0
3/19 18:51:08 wlott
Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pred.lisp,v 1.1
6
1991/0
2/08 13:34:47 ram
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pred.lisp,v 1.1
7
1991/0
3/19 18:51:08 wlott
Exp $
;;;
;;; Predicate functions for CMU Common Lisp.
;;;
...
...
@@ -296,7 +296,15 @@
(
satisfies
(
unless
(
and
(
listp
hairy-spec
)
(
=
(
length
hairy-spec
)
2
))
(
error
"Invalid type specifier: ~S"
hairy-spec
))
(
if
(
funcall
(
cadr
hairy-spec
)
object
)
t
)))))
(
let
((
fn
(
cadr
hairy-spec
)))
(
if
(
funcall
(
typecase
fn
(
function
fn
)
(
symbol
(
symbol-function
fn
))
(
t
(
coerce
fn
'function
)))
object
)
t
nil
))))))
(
function-type
(
error
"Function types are not a legal argument to TYPEP:~% ~S"
(
type-specifier
type
)))))
...
...
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