prototype:get-type-specifier
builtin-function
(prototype:get-type-specifier obj)
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)