grain icon indicating copy to clipboard operation
grain copied to clipboard

feat(compiler)!: `foreign` module syntax

Open alex-snezhko opened this issue 1 year ago • 0 comments

Closes #1052 with modified syntax as discussed in Discord

module A

// use as a submodule
foreign module Namespace binds "namespace" {
  foreign value myFn binds "my_fn": WasmI32 => WasmI32
}
// use as a toplevel module
foreign module Namespace binds "namespace"

foreign value myFn binds "my_fn": WasmI32 => WasmI32

alex-snezhko avatar Jun 26 '23 00:06 alex-snezhko