type
Description
The type object is the core of SIMPOL. Every other type has a type object that represents it and which is of the data type type. Even properties and functions are represented by type objects.
Type Tags
None
Object Value
The value of an type object is the name of the type.
type.new()
Description
Creates a new instance of the type for which the method is called. If this is
a user-defined type and the user has created a
new()
method for the type, then after the
object has been created it will be passed together with the other
arguments to the user's new()
method. The
basic new()
method has no parameters.
Prototype
type
.new
()
Parameters
None
Properties
Property | Type | Description |
---|---|---|
firstfunction | function | Contains a reference to the first method of the type. The methods are held in a ring. |
firstproperty | property | Contains a reference to the first property of the type. The properties are held in a ring. They include both properties and methods. |
module | module | Contains a reference to the module within which the type is defined. |
next | type | Contains a reference to the next type in the ring of types within a given module. The types are held in a ring. |
type | type | Specifies the type type object. |