wasm-zig icon indicating copy to clipboard operation
wasm-zig copied to clipboard

Func `call` only works for comptime values.

Open somethingelseentirely opened this issue 3 years ago • 0 comments

It looks like Func.call can only be called with comptime known values. I'm not sure if this was missed because all the examples only use literals, or if the semantic of zig has changed recently.

Not being able to call functions with dynamic values makes calling them rather moot, so I'll see what I can do to fix this 😅

Code in question is here: https://github.com/zigwasm/wasm-zig/blob/8f9a0d1f7f53248f32272beb0b7b90061b8f3c30/src/main.zig#L170-L186

somethingelseentirely avatar Feb 24 '22 10:02 somethingelseentirely