next up previous contents
: Array : kan/examples : Examples: gb, rrank, gkz,   目次

Data types

Each object in sm1 has a data type. Here is a list of main primitive data types, which are common to other languages except the type polynomial and the type ring.

integer(machine integer),      32 bit integer.     Example: 152
literal,      literal.     Example: /abc
string,      string.     Example: (Hello)
executableArray,      program data.     Example: { add 2 mul }
array,      array,     Example: [(abc) 5 ]
polynomial,      polynomial,     Example: (x^2-1).
ring,      ring definition.
number(universalNumber),      Big num.     Example: (123).. 456 power
class,      Class.

Nobuki Takayama 平成22年2月8日