For these, TRUE implies success. If an error is indicated on return from any function, an error will have been stored in the RiscOopLib error handling system. This alleviates the need to pass around large numbers of error pointers. The first form takes and returns a pointer to an OS error. The last form only takes the flag and is used to display the stored error.
Calls also exist for clearing or returning the address of the stored error.
When an object is constructed, a flag is set within it to indicate whether construction was successful or not. This results in a significant saving in code size. It uses a system of anchors to provide resizable, relocating blocks of memory which may be locked or declared purgeable. A purgeable block may be deleted by memx at any time if the system becomes short of memory. The next stage of development of the library is to make it use Acorn's new Toolbox system.