summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-07-28 12:37:37 +0100
committerdakkar <dakkar@thenautilus.net>2023-07-28 12:37:37 +0100
commite83a245d31fa74ce9badae6d4f94fc6ea1447839 (patch)
tree6d9fcac7be55e4768a0c8e4aabef3e1fd06e5041
parentbad hack! (diff)
downloadbash-object-system-e83a245d31fa74ce9badae6d4f94fc6ea1447839.tar.gz
bash-object-system-e83a245d31fa74ce9badae6d4f94fc6ea1447839.tar.bz2
bash-object-system-e83a245d31fa74ce9badae6d4f94fc6ea1447839.zip
notes
-rw-r--r--bos-meta-class.sh9
-rw-r--r--meta-stuff.rst.txt4
2 files changed, 13 insertions, 0 deletions
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