mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
correcting register-simple-type documentation
This commit is contained in:
parent
3b57a78f98
commit
1258c12f34
1 changed files with 5 additions and 2 deletions
|
@ -264,8 +264,8 @@ These are just syntactic sugar for the following more primitive type
|
||||||
constructors:
|
constructors:
|
||||||
|
|
||||||
\schemeblock{
|
\schemeblock{
|
||||||
(register-simple-type <name-string> <parent> <num-fields>)
|
(register-simple-type <name-string> <parent> <field-names>)
|
||||||
=> <type>
|
=> <type> ; parent may be #f, field-names should be a list of symbols
|
||||||
|
|
||||||
(make-type-predicate <opcode-name-string> <type>)
|
(make-type-predicate <opcode-name-string> <type>)
|
||||||
=> <opcode> ; takes 1 arg, returns #t iff that arg is of the type
|
=> <opcode> ; takes 1 arg, returns #t iff that arg is of the type
|
||||||
|
@ -278,6 +278,9 @@ constructors:
|
||||||
|
|
||||||
(make-setter <setter-name-string> <type> <field-index>)
|
(make-setter <setter-name-string> <type> <field-index>)
|
||||||
=> <opcode> ; takes 2 args, sets the field located at the index
|
=> <opcode> ; takes 2 args, sets the field located at the index
|
||||||
|
|
||||||
|
(type-slot-offset <type> <field-name>)
|
||||||
|
=> <index> ; returns the index of the field with the given name
|
||||||
}
|
}
|
||||||
|
|
||||||
\subsection{Unicode}
|
\subsection{Unicode}
|
||||||
|
|
Loading…
Add table
Reference in a new issue