symbolToTypeCode

 

 

Overview

The symbolToTypeCode function returns the Integer type code of the type name specified.

Usage

The symbolToTypeCode function returns the Integer type code of the type name specified.

The AIS system stores information in Words which contain a declared type. For the Lisp assembler programmer, the symbolToTypeCode function allows the access and reference of declared types in Words. For instance, the following code uses the symbolToTypeCode function to check that the argument is really of the specified type.

(defun foo(Number:x)
  regs:(n)
  (vmregLoadDeclType x n)
  (if (<> (symbolToTypeCode Number:) n) then (error "Bad type passed as argument"))
  true)

 

Syntax


Expression:

(setq typeCode (symbolToTypeCode typeName))


Arguments Name Type Description
Argument:typeName String Symbol Text The symbolic name of the type whose Integer code is to be returned.
Argument:typeCode Integer Returns the typeCode, as an Integer, of the symbolic type name specified.

Returns:

typeCode



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

String Symbol Text

Here are also a number of links to functions having arguments with any of these data types.

++ += /= *=
-- -= addMethod appendWriteln
append apply balance binaryInsert
binarySearch boolean cdr char
character clean closeLog code
compareEQ compareGE compareGT compareLE
compareLT compareNE compare comparison
compress cons count date
day days360 debugBrowsableProcs debugDetective
debugEval debug defchild defclass
define(macro) define defmacro defmethod
deforphan defriend defun delete
dimension disassemble display downcase
encode evalInSyncLocalContext eval exportCsv
exportSbf exportTab fdisplay fileClose
fileCopy fileDir fileDisplay fileEraseDir
fileErase fileExists fileMakeDir fileOpen
fileReadAll fileReadRecord fileRead fileSizeOf
fileWriteAll fileWrite filewriteln find
gc getGlobalValue getSymbolTable globalBinding
hashString hour importCsv importSbf
importTab insert inside inspect
integer isAtom isBitVector isBoolean
isByteVector isCharAlphabetic isCharAlphanumeric isCharLowercase
isCharName isCharNumeric isCharUppercase isCharWhitespace
isChar isCharacter isComplex isDate
isDictionary isDirectory isEqual isError
isFloatVector isIdentical isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNumberMatrix isNumberVector isNumber
isObjectVector isObject isPair isPcodeVector
isString isStructure isSymbol isText
isType isVector julian left
length list loadModule loadWorkspace
lock macroReplace makeQuotedList makeQuotedSymbol
member methodsOf mid minute
money month new number
offset openLog pair parent
parse pointer proplist proprecord
putprop qt ref remProp
remove rename replace rept
right run saveImmediate saveModule
saveObject saveRepository saveWorkspace second
setCar setCdr setLastCdr set
setf setq sizeof sort
sql stringCiEQ stringCiGE stringCiGT
stringCiLE stringCiLT stringCiNE stringFill
stringToBVector stringToVector string submit
substitute substringCiEQ substringCiGE substringCiGT
substringCiLE substringCiLT substringCiNE substringEQ
substringFill substringGE substringGT substringLE
substringLT substringNE substring svmRegression
symbolToTypeCode symbol system text
time trim type uniqueInsert
unlock upcase vectorFill writelg
writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE