diff options
author | dakkar <dakkar@thenautilus.net> | 2023-07-22 12:35:39 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2023-07-22 12:35:39 +0100 |
commit | 6b3f9cb909df162345d9f5a001abeb0d3df31ce9 (patch) | |
tree | 32d89ba43faaea0ebfe69f9aaa8f002c7b9e57bd /bos-dispatch.sh | |
parent | move tests to actual test programs (diff) | |
download | bash-object-system-6b3f9cb909df162345d9f5a001abeb0d3df31ce9.tar.gz bash-object-system-6b3f9cb909df162345d9f5a001abeb0d3df31ce9.tar.bz2 bash-object-system-6b3f9cb909df162345d9f5a001abeb0d3df31ce9.zip |
`*-into` always takes the destination as `$1`
Diffstat (limited to 'bos-dispatch.sh')
-rw-r--r-- | bos-dispatch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bos-dispatch.sh b/bos-dispatch.sh index 8489765..8306378 100644 --- a/bos-dispatch.sh +++ b/bos-dispatch.sh @@ -28,13 +28,13 @@ function bos-dispatch/invoke() { if declare -F "$qualified_method" >/dev/null; then local self - bos-object-id/pack-self-into "$class" "$self_id" self + bos-object-id/pack-self-into self "$class" "$self_id" "$qualified_method" "$@" return $? fi local metaclass_ref - bos-namespaces/store-scalar-for-into meta "$class" metaclass_ref + bos-namespaces/store-scalar-for-into metaclass_ref meta "$class" local -n metaclass_object="$metaclass_ref" $metaclass_object invoke "$class" "$self_id" "$method" "$@" |