Compiler module

remap_import

procedureSource

Makes #import "import_name" inside host_module_name load replacement_name instead. Use it from a message handler to swap in another version of a module.

remap_import :: (
    w: Workspace,
    host_module_name: string,
    import_name: string,
    replacement_name: string
)

Parameters

w: Workspace
host_module_name: string
import_name: string
replacement_name: string

See also