From d613b1972ac69b17e69eed87b2e184d8475339a3 Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Fri, 16 Jun 2023 18:20:44 -0500 Subject: [PATCH] Update Explainer.md to match Wit interface id changes in Binary.md --- design/mvp/Binary.md | 37 +-- design/mvp/Explainer.md | 229 +++++------------- design/mvp/Subtyping.md | 2 +- design/mvp/WIT.md | 9 +- design/mvp/examples/LinkTimeVirtualization.md | 23 +- 5 files changed, 95 insertions(+), 205 deletions(-) diff --git a/design/mvp/Binary.md b/design/mvp/Binary.md index b503793e..c74af5cb 100644 --- a/design/mvp/Binary.md +++ b/design/mvp/Binary.md @@ -102,8 +102,9 @@ Notes: for aliases (below). * Validation of `core:instantiatearg` initially only allows the `instance` sort, but would be extended to accept other sorts as core wasm is extended. -* Validation of `instantiate` requires that `name` is present in an - `externname` of `c` (with a matching type). +* Validation of `instantiate` requires that each `` or `` in an + imported `externname` in `c` matches a `string` in a `with` argument and that + the argument's type matches the import's type. * When validating `instantiate`, after each individual type-import is supplied via `with`, the actual type supplied is immediately substituted for all uses of the import, so that subsequent imports and all exports are now specialized @@ -327,23 +328,14 @@ flags are set. (See [Import and Export Definitions](Explainer.md#import-and-export-definitions) in the explainer.) ``` -import ::= en: ed: => (import en ed) -export ::= en: si: ed?:? => (export en si ed?) -externname ::= 0x00 n: => n - | 0x01 n: => (interface n) -id ::= len: n: => n (if len = |n|) - -id-chars ::= ns: