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.
Error
An error a program raises with Runtime->Raise, and the base of the runtime's own: subclass it for an error of your own. A ?-> region recovers from any of them, and Runtime->GetLastError returns the one it recovered from.
class ParseError from Error { New(message : String) { Parent(message); } } ... Runtime->Raise(ParseError->New("row 12: expected a number")); Operations
GetMessage #
What went wrong
method : public : GetMessage() ~ StringReturn
| Type | Description |
|---|---|
| String | the message |