summaryrefslogtreecommitdiff
path: root/test.sh
blob: 1a4ed6df7c6c90a6b79e4d9936496cffa3a0a02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash 
 
. bos-namespaces.sh
. bos-object-id.sh
. bos-mop.sh
. bos-dispatch.sh
 
bos_5fA_5fmeta="bos-dispatch/invoke bos/mop/base 0"
bos_5fA_5fmro=( "A" )
 
function A/thing() {
    echo "<$self> A/thing ($*)"
}
 
bos_5fB_5fmeta="bos-dispatch/invoke bos/mop/base 0"
bos_5fB_5fmro=( "B" "A" )
 
function B/other() {
    echo "<$self> B/other ($*)"
}
 
bos-object-id/pack-self-into A 0 objA
bos-object-id/pack-self-into B 0 objB
 
$objA thing 1 2 3
$objB thing 4 5 6
$objB other 7 8 9