src/swipl-devel/packages/xpce/man/refmanual/md/code_vector.md

class code_vector {#class-code_vector}

Argument vector that holds function objects without evaluating them. A code_vector is a subclass of vector whose elements have type any|function; storing a function does not invoke it. Used by the virtual machine for:

The only difference from vector is type-checking: vector declares its elements of type object, forcing functions to evaluate on assignment, while code_vector accepts unevaluated functions and leaves them alone.

@see class vector @see class message @see class obtain @see object->send_vector

Send methods {#class-code_vector-send}

Get methods {#class-code_vector-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.