All Manuals > LispWorks User Guide and Reference Manual > 38 The HCL Package

NextPrevUpTopContentsIndex

copy-to-weak-simple-vector

Function
Summary

Creates a weak vector with the same contents as the supplied vector.

Package

hcl

Signature

copy-to-weak-simple-vector vector-t => weak-vector

Arguments

vector-t

An array of type (vector t).

Values

weak-vector

A weak array of type (vector t).

Description

The function copy-to-weak-simple-vector creates and returns a weak vector with the same contents as the argument vector-t.

Apart from the checking of arguments, this is equivalent to:

(replace (make-array (length vector-t
) 
                     :weak t)
         vector-t
)

See set-array-weak for a description of weak vectors.

See also

make-array
set-array-weak
Freeing of objects by the GC


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex