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
50f68ee9
Commit
50f68ee9
authored
32 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Add some documentation & make T translated.
parent
17541a9f
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/class.lisp
+36
-3
36 additions, 3 deletions
code/class.lisp
with
36 additions
and
3 deletions
code/class.lisp
+
36
−
3
View file @
50f68ee9
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/class.lisp,v 1.
2
1993/02/0
4
22:
34:56
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/class.lisp,v 1.
3
1993/02/0
8
22:
20:08
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -246,7 +246,7 @@
;;;
(
defun
(
setf
find-class
)
(
new-value
name
)
(
ecase
(
info
type
kind
name
)
(
nil
)
(
(
nil
)
)
(
#+
ns-boot
(
:instance
:structure
)
#-
ns-boot
:instance
(
let
((
old
(
class-of
(
info
type
class
name
)))
(
new
(
class-of
new-value
)))
...
...
@@ -364,11 +364,44 @@
;;;; Built-in classes & class-of:
;;;
;;; The BUILT-IN-CLASSES list is a data structure which configures the
;;; creation of all the built-in classes. It contains all the info that we
;;; need to maintain the mapping between classes, compile-time types and
;;; run-time type codes. These options are defined:
;;;
;;; :TRANSLATION (default none)
;;; When this class is "parsed" as a type specifier, it is translated into
;;; the specified internal type representation, rather than being left as a
;;; class. This is used for types which we want to canonicalize to
;;; some other kind of type object because in general we want to be able to
;;; include more information than just the class (e.g. for numeric types.)
;;; Default none.
;;;
;;; :ENUMERABLE (default NIL)
;;; The value of the :ENUMERABLE slot in the created class. Meaningless in
;;; translated classes.
;;;
;;; :STATE (default :SEALED)
;;; The value of CLASS-STATE which we want on completion, indicating
;;; whether subclasses can be created at run-time.
;;;
;;; :HIERARCHICAL (default T)
;;; True if we can assign this class a unique INHERITANCE-DEPTH.
;;;
;;; :CODES (default none)
;;; Run-time type codes which should be translated back to this class by
;;; CLASS-OF. Unspecified for abstract classes.
;;;
;;; :INHERITS (default this class & T)
;;; The class-precedence list for this class, with this class and T
;;; implicit.
;;;
(
defvar
built-in-classes
)
(
cold-load-init
(
setq
built-in-classes
'
((
t
:state
:read-only
)
'
((
t
:state
:read-only
:translation
t
)
(
character
:enumerable
t
:codes
(
#.
vm:base-char-type
))
(
array
:translation
array
...
...
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