[top] [up] [next]

Modules Help


    pl_img18.gif (6556 bytes)

With this window it is possible to manage all compiled modules. A module is a file which has been compiled and loaded into memory. The modules list displays for each module the internal name, if it is the active module, the open mode (read or read/write) and the name of the file opened. Modules can also be loaded with Prolog built-in predicates like: consult/1.

Open
A file open dialog is displayed to select a source file to open. The last opened module will be the active module. It is also possible to open files by dragging and dropping them on this window.

Close
The current selected module, from the grid displaying all the modules, is closed if this button is pressed. A module can be selected by pressing the left mouse button in the grid.

Reload
The current selected module is closed and opened again with the same options as when the module was opened for the first time. If a text file of a Prolog program was changed then this button can be used to quickly reload and compile the new version of the same file.

Source
The current text editor is used to view the source of the selected module.

Set active
In the clausebase there is always a single active module. The active module is the module that is searched first for a clause, the Prolog inference engine has access to private clauses in the active module. Only public clauses can be searched from other modules.

Name
This column displays the name of the module, this is the internal name by which the module is identified.

Active
If the module is the current active module then 'Active' is displayed in this column, else the column is empty.

Mode
The mode of the module is displayed here, if the mode displayed is 'read' then no clauses can be asserted to or retracted from the module, if the mode is 'read/write' then clauses can be asserted or retracted.

File
The filename of the compiled file is displayed in this column.

see also: active_module/1 check_singleton/1 close_all_modules/0 close_module/1 consult/0 consult/3 create_module/1 ensure_loaded/1 include/1 modules open_module/0 open_module/1 open_module/3 open_module_search/3 open_standard_module/2 Prolog Modules save_module/1 save_module/2 save_module/3 set_active_module/0 set_active_module/1

[top] [up] [next]

 

info@trinc-prolog.com