beetlebug▾
/

ztcl::wasm::host families

Gives the names of the import families of the build.

ztcl::wasm::host families

Description

The names of the families that -grant of instantiate can give. This version has the family vm.

Returns

A list of names.

Examples

Each example of this page runs after package require ztcl::wasm::host # (import "vm" "last_error" (func (param i32 i32) (result i32))), (import "vm" "start" (func (param i32) (result i32))), (memory (export "memory") 1), and an export of each import set m [ztcl::wasm new [binary decode hex 0061736d01000000010c0260027f7f017f60017f017f021c0202766d0a6c6173745f6572726f72000002766d05737461727400010503010001071f03066d656d6f727902000a6c6173745f6572726f7200000573746172740001]] .

% ztcl::wasm::host families
vm info location motion audio

Errors

% ztcl::wasm::host families x
wrong # args: should be "ztcl::wasm::host families"
-errorcode TCL WRONGARGS

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.4