Each Templates object contains a templates file. Any number can be used permitting a memory saving since one or more files can be discarded after creating windows on startup while others are kept to create windows on the fly at a later stage. To facilitate the handling of arrays, the Array class provides allocation, insertion and deletion operations in memory claimed using 'new'. Spare memory is kept to allow frequent addition of elements without a large overhead in terms of time or memory fragmentation. Array may be inherited to obtain a pointer to any type.
Error handling Most RiscOopLib functions return a boolean.
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.