blob: afefb5ec2422811548304e4f7ccab14df76197c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
function bos-dispatch/invoke() { local class="$1";shift local self_id="$1";shift local method="$1";shift if declare -F "$class/$method" >/dev/null; then local self bos-object-id/pack-self-into "$class" "$self_id" self "$class/$method" "$@" return $? fi local metaclass_ref bos-namespaces/store-scalar-for-into meta "$class" metaclass_ref local -n metaclass_object="$metaclass_ref" $metaclass_object invoke "$class" "$self_id" "$method" "$@" return $? }
|