Qore Programming Language Reference Manual: Code Data Types

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

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
- Call Reference Type

# 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