From 6297ec2ae4263c346a9f7cf036055ca8cdb72c78 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Fri, 14 Jul 2023 15:22:38 +0100 Subject: inheritance via MOP *probably*, I'm still not completely certain I've found all the weirdness --- test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test.sh') diff --git a/test.sh b/test.sh index 1a4ed6d..4a3e02c 100644 --- a/test.sh +++ b/test.sh @@ -1,19 +1,23 @@ #!/bin/bash +PS4='[${#FUNCNAME[*]}] ${BASH_SOURCE[0]}:${LINENO} (${FUNCNAME[0]}) +' + . bos-namespaces.sh . bos-object-id.sh . bos-mop.sh . bos-dispatch.sh +. bos-mop-inheritance.sh -bos_5fA_5fmeta="bos-dispatch/invoke bos/mop/base 0" -bos_5fA_5fmro=( "A" ) +bos_5fA_5fmeta="bos-dispatch/invoke bos/mop/inheritance 0" function A/thing() { echo "<$self> A/thing ($*)" } -bos_5fB_5fmeta="bos-dispatch/invoke bos/mop/base 0" -bos_5fB_5fmro=( "B" "A" ) + +bos_5fB_5fmeta="bos-dispatch/invoke bos/mop/inheritance 0" +$bos_5fB_5fmeta set-superclasses-for B A +$bos_5fB_5fmeta make-mro-for B function B/other() { echo "<$self> B/other ($*)" -- cgit v1.2.3