General Information | |
Operator | typeof |
Syntax | typeof expr |
Type | unary |
Operand Type | any type |
Result Type | string |
Function | returns the type of the atom |
Expression Examples | |
typeof "alpha" | "string" |
typeof (1+20.) | "float" |
typeof list(1, 2, 3) | "list" |
typeof first(select Person) | "oid" |
typeof 1+3049 | raises an error |
typeof alpha | type of the value of alpha |
typeof &alpha | ident |
General Information | |
Operator | classof |
Syntax | classof expr |
Type | unary |
Operand Type | oid or object |
Result Type | string |
Function | returns the class of the operand |
Expression Examples | |
classof first(select class) | "basic_class" |
classof (c := new Car(num : 10)) | "Car" |
classof NULL | "" |
classof first(select Person).spouse | "Person" or NULL |
classof 1 | raises an error |
EyeDB manual