GuestIntrinsic

interface GuestIntrinsic

Guest Intrinsic

Applied to all intrinsic classes that are implemented for a guest language, in addition to various annotations which designate the use context of a given implementation.

Inheritors

Types

Link copied to clipboard

Binds a well-known Symbol to some value within the context of guest-capable code; note that registered symbols are not necessarily exposed publicly (this depends on the language and symbol).

Link copied to clipboard

Extends the base IntrinsicBindings type with mutability; typically used during context materialization, after which language bindings are frozen and immutable.

Properties

Link copied to clipboard

Indicate whether this symbol is considered runtime-internal.

Functions

Link copied to clipboard
abstract fun displayName(): String

Return the display name of this intrinsic; this is typically the Symbol bound to the value.

Link copied to clipboard

Install this intrinsic into the provided context bindings for a fresh context; this will only be called once per spawned context.

Link copied to clipboard
abstract fun language(): GuestLanguage

Indicate the language which this intrinsic is intended to be used with.

Link copied to clipboard
open fun supports(language: GuestLanguage): Boolean

Indicate whether this intrinsic is intended to be used with a given guest language.

Link copied to clipboard
abstract fun symbolicName(): String

Return the display name of this intrinsic; this is typically the Symbol bound to the value.