correcting register-simple-type documentation

This commit is contained in:
Alex Shinn 2016-04-14 22:45:17 +09:00
parent 3b57a78f98
commit 1258c12f34

View file

@ -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}