Qore Programming Language Reference Manual 1.18.1
Loading...
Searching...
No Matches
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); }
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