summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2023-07-14 16:36:10 +0100
committerGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2023-07-14 16:36:10 +0100
commit86c37a00dd9ec82c261e3c9f7997051aabaa228b (patch)
treeb682b6e94d62e293aefa353008b33f85b57c6ed3 /test.sh
parentsome sugaring (diff)
downloadbash-object-system-86c37a00dd9ec82c261e3c9f7997051aabaa228b.tar.gz
bash-object-system-86c37a00dd9ec82c261e3c9f7997051aabaa228b.tar.bz2
bash-object-system-86c37a00dd9ec82c261e3c9f7997051aabaa228b.zip
constructors & class methods!
"class methods" are not actually a thing, we declare a function for each class, that invokes on the class name and object-id=0 (object-id start from 1 for real objects)
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.sh b/test.sh
index 058fe07..f161647 100644
--- a/test.sh
+++ b/test.sh
@@ -26,8 +26,8 @@ class B; do
done
-bos-object-id/pack-self-into A 0 objA
-bos-object-id/pack-self-into B 0 objB
+A new-into objA
+B new-into objB
$objA thing 1 2 3
$objB thing 4 5 6