Bundle
Core runtime library providing primitive types (Bool, Byte, Char, Int, Float, String), the Ref wrappers and array helpers, and system utilities (console, files, threads, sockets). Collections are not here: they are in gen_collect.obl. Every Objeck program links against this bundle automatically via lang.obl.
Bool
Boolean class
Operations
Columns # function
Returns the number of columns in the matrix
function : Columns(matrix:Bool[,]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| matrix | Bool | matrix to process |
Return
| Type | Description |
|---|---|
| Int | number of columns in the matrix |
Flip # function
Pseudo random coin flip
function : Flip() ~ BoolReturn
| Type | Description |
|---|---|
| Bool | true or false |
Rows # function
Returns the number of rows in the matrix
function : Rows(matrix:Bool[,]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| matrix | Bool | matrix to process |
Return
| Type | Description |
|---|---|
| Int | number of rows in the matrix |
ToString # native
Formats the boolean value into a string
function : native : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string value |