This is an old revision of the document!
User created libraries
Libraries are a way to package and distribute a group of programs or data for others to use. They can be accessed from the Lib
menu, which shows all currently installed libraries. Initially, the Libs
menu is empty until libraries are installed.
Installing/removing a library
Libraries are regular RPL objects and therefore can be transferred to the calculator via the USB port or SD card. To enable the functionality of a library on the system, put the library object on the stack and use the ATTACH
command (can be found on the main menu under submenu System
, Lib
, not to be confused with Libs
which shows the installed libraries).
If the ATTACH
command succeeds, it will leave on the stack a 4-letter library ID, and a string with the library description. The library ID is a unique name the developer assigns to the library, and is how the library shows up in the Libs
menu. From that moment on, any commands exposed by the library will become available to use in programs or directly from the corresponding submenu in the Libs
menu.
To remove a library that was previously installed, use the command DETACH
. The command takes a library ID in the form of a 4-letter identifier, it can be retrieved directly from the Libs
menu using RShold-[menu key] while in Alpha mode. To confirm that a library was successfully detached, check that its library ID no longer appears in the Libs
menu.