Qore Programming Language Reference Manual  1.8.0
Code Data Types

There are two types of code data types in Qore (see also Basic Data Types and Container Data Types):


Closure Type

Description:
Closures are pieces of code used as values; see Closures for more information.
Immediate Value Example:
string sub (int c) { return sprintf("temp=%d", c); }
string sprintf(string fmt,...)
Returns a formatted string based on a format string and other arguments; does not enforce field width...
Pseudo Class for Type Closure:
<closure>
Type Code:
Qore::NT_CLOSURE
Type Name:
"closure"
See also
Closures, code, Call Reference Type

Call Reference Type

Description:
Call references are a value type that can be used like a closures; see Call References for more information.
Immediate Value Example:
\function()
Pseudo Class for Type Call Reference:
<callref>
Type Code:
Qore::NT_CALLREF
Type Name:
"call reference"
See also
Call References, code, Closure Type