From e83a245d31fa74ce9badae6d4f94fc6ea1447839 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 28 Jul 2023 12:37:37 +0100 Subject: notes --- bos-meta-class.sh | 9 +++++++++ meta-stuff.rst.txt | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/bos-meta-class.sh b/bos-meta-class.sh index 586eee5..a02ddb1 100644 --- a/bos-meta-class.sh +++ b/bos-meta-class.sh @@ -210,6 +210,15 @@ function bos/meta/class/create-object-into() { bos-object-id/pack-self-into bos_meta_class_create_object_result "$class" "$object_id" + # TODO set up attribute values + # + # for each class in reverse mro, get metaclass, get + # class_attributes, collapse all the attribute meta-objects into a + # single assoc, then scan $@ and set-value appropriately + # + # may need some add-value, actually… do we need three attribute + # metaclasses? ☹ + # TODO invoke BUILD/BUILDALL? return 0 diff --git a/meta-stuff.rst.txt b/meta-stuff.rst.txt index 408e5dd..c7fa181 100644 --- a/meta-stuff.rst.txt +++ b/meta-stuff.rst.txt @@ -48,5 +48,9 @@ next bits… setting up the isa/mro for those two is going to be *complicated* +* constructor should assign attributes + + - this will make ``has`` much simpler to write! + * formalise that ``bos-dispatch/invoke $class 0 $method $args`` is a class method invocation -- cgit v1.2.3