minor fixes concerning shape:meta

This commit is contained in:
Helmut Merz 2024-10-12 16:00:45 +02:00
parent 876e11b0c9
commit 6f846ea940
2 changed files with 5 additions and 4 deletions

View file

@ -44,7 +44,7 @@
(print-slots rec stream 'head 'data))
(defmethod head-fields ((rec record))
(head-fields (get-meta (class-of rec))))
(head-fields (meta rec)))
(defun head-value (rec key)
(elt (head rec) (position key (head-fields rec))))

View file

@ -63,9 +63,10 @@
(make-instance 'container :short-name :trk :storage st))
(defmethod initialize-instance :after ((cont container) &key &allow-other-keys)
(setf (gethash (short-name cont) *containers*) cont)
(setf (item-head-fields cont)
(shape:head-fields (shape:get-meta (item-class cont)))))
(setf (gethash (short-name cont) *containers*) cont))
(defun item-head-fields (cont)
(shape:head-fields (shape:get-meta (item-class cont))))
(defun make-item (cont &rest head)
(make-instance (item-class cont) :head head :container cont))