4.2. Type Namespace

The Type namespace only has constant definitions for basic Qore datatypes in it. There are no class definitions in the Type namespace. The type() function returns values in the set of the following constants. All of the following constants have string values.

Table 4.25. Type Constant Definitions

Name

Value

Corresponding Type

Type::Boolean

"bool"

Boolean

Type::Int

"integer"

Integer

Type::String

"string"

String

Type::Float

"float"

Float

Type::Date

"data"

Date

Type::Binary

"binary"

Binary

Type::Hash

"hash"

Hash

Type::List

"list"

List

Type::Object

"object"

Object

Type::NullType

"NULL"

SQL NULL

Type::NothingType

"nothing"

NOTHING

Type::CallReference

"call reference"

call references

Type::Closure

"closure"

closures


There are no comments yet

Leave a Comment



?
? ?
?

 
Powered by TalkBack