NAME

transient - returns whether a value is stored in the dynamic memory pool

SYNOPSIS

oadl::transient(val)
val.transient()

DESCRIPTION

OADL has two memory pools - a "permanent" pool and the default dynamic memory pool. The transient() intrinsic procedure and intrinsic method may be used to query whether a dynamic value is stored in the default dynamic pool.

RETURN VALUE

true if val is stored in the default dynamic memory pool, and false otherwise.

ERRORS

TypeCheck if val is not a dynamic value

EXAMPLE

        a = [1,2,3]
        b = oadl::perm(a)
        a.transient()
    true

        b.transient()
    false

SEE ALSO

perm