fixed wrong spec decoding in core.basicAt and core.basicAtPut functions

This commit is contained in:
2025-09-03 23:08:20 +09:00
parent e64b7c495b
commit ad510b1436
3 changed files with 66 additions and 63 deletions

View File

@ -136,15 +136,18 @@ printf "----------------------------------------\n"
k := #[1 2 3]
printf "%O\n" (k:basicAt 2)
class Z: Object [ a b c ] {
class (#varying) Z: Object [ a b c ] {
fun(#classinst) new() {
self.a := 10
self.b := 20
self.c := 30
printf "Z:new called\n"
}
}
##k := (Z:basicNew 0)
k := (Z:new)
k := (Z:basicNew 10)
##k := (Z:new)
k:basicAtPut 2 "hello"
k:basicAtPut 3 "world"
printf "----------------------------------------\n"
printf "%O\n" (k:basicAt 2)