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
1c8771de
Commit
1c8771de
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Moved TYPE-EXPAND here, and made it use INFO instead of plist hackery.
parent
52494258
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/eval.lisp
+16
-0
16 additions, 0 deletions
code/eval.lisp
with
16 additions
and
0 deletions
code/eval.lisp
+
16
−
0
View file @
1c8771de
...
...
@@ -304,6 +304,22 @@
(
eq
(
info
variable
kind
object
)
:constant
))
(
list
(
eq
(
car
object
)
'quote
))))
;;; Type-Expand -- Interface
;;;
;;; Similar to Macroexpand, but expands deftypes. We don't bother returning
;;; a second value.
;;;
(
defun
type-expand
(
form
)
(
let
((
def
(
cond
((
symbolp
form
)
(
info
type
expander
form
))
((
and
(
consp
form
)
(
symbolp
(
car
form
)))
(
info
type
expander
(
car
form
)))
(
t
nil
))))
(
if
def
(
type-expand
(
funcall
def
(
if
(
consp
form
)
form
(
list
form
))))
form
)))
;;; Function invocation:
...
...
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