Qore Programming Language Reference Manual  0.8.13.5
 All Classes Namespaces Functions Variables Groups Pages
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:
1 string sub (int c) { return sprintf("temp=%d", c); }
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:
1 \function()
Pseudo Class for Type Call Reference:
<callref>
Type Code:
Qore::NT_CALLREF
Type Name:
"call reference"
See Also
Call References, code, Closure Type