jan tolenaar / kiezellisp / index-of-everything

Name

prototype:get-type-specifier

Usage

builtin-function

Syntax

(prototype:get-type-specifier obj)

Description

Returns a type name or a list of the type names of the prototype object obj.

make-html > (deftype a1 (new :city "leiden"))
it: #s(a1 :city "leiden" )
make-html > (deftype a2 (new :country "netherlands"))
it: #s(a2 :country "netherlands" )
make-html > (def b (new 'a1))
it: b
make-html > (prototype:get-type-specifier b)
it: a1
make-html > (def c (new '(a1 a2)
                        :name "mies"))
it: c
make-html > c
it: #s((a1 a2) :city "leiden"
               :country "netherlands"
               :name "mies" )
make-html > (prototype:get-type-specifier c)
it: (a1 a2)