wasm shell + destructuring

This commit is contained in:
agra
2026-03-03 13:21:54 +02:00
parent 6c5672c7df
commit 004aff5f67
18 changed files with 219 additions and 32 deletions

View File

@@ -128,6 +128,7 @@ slice-of-slice: [20, 30]
strsub: world
str-prefix: hello
str-suffix: world
global-addr-of: 99
deref: Point{x: 10, y: 20}
auto-deref: 10
mp[0]: 10
@@ -137,6 +138,7 @@ ptr==null: true
ptr!=null: false
ptr2==null: false
ptr2!=null: true
ptr-nested-field: 1.000000 2.000000 3.000000
vec-construct: [1.000000, 3.000000, 2.000000]
vec-add: [5.000000, 7.000000, 9.000000]
vec-sub: [4.000000, 3.000000, 2.000000]
@@ -267,6 +269,11 @@ flags-explicit-raw: 68
var swap: 20 10
arr swap: 3 1
3-way: 3 1 2
--- destructure ---
basic: 10 20
fn: 2 1
discard: 200
triple: 1 2 3
=== 15. Foreign ===
foreign-rename: 42
=== 16. Compound Assign ===