Did you know ... Search Documentation:
SWI-Prolog owl logo The SWI-Prolog library

A The SWI-Prolog library

This chapter documents the SWI-Prolog library. As SWI-Prolog provides auto-loading, there is little difference between library predicates and built-in predicates. Part of the library is therefore documented in the rest of the manual. Library predicates differ from built-in predicates in the following ways:

  • User definition of a built-in leads to a permission error, while using the name of a library predicate is allowed.
  • If autoloading is disabled explicitly or because trapping unknown predicates is disabled (see unknown/2 and current_prolog_flag/2), library predicates must be loaded explicitly.
  • Using libraries reduces the footprint of applications that don't need them.
The documentation of the library has just started. Material from the standard packages should be moved here, some material from other parts of the manual should be moved too and various libraries are not documented at all.

Section Index


Tags are associated to your profile if you are logged in
Tags:
EricGT said (2020年07月13日T09:42:06):0 upvotes 0 0 downvotes
Picture of user EricGT.

For additional libraries check

1) Packages

Packages are relatively independent add-on libraries that may not be available in all installations. Packages are part of the source code releases of SWI-Prolog and may be enabled or disabled during the build.

2) Packs

Please be aware that packs are not moderated. Installing a pack does not execute code in the pack, but simply loading a library from the pack may execute arbitrary code.

A pack is an archive (.zip or .tgz) file that (minimally) contains, two items:

  • A subdirectory prolog
    If the pack is installed, this directory is added to the Prolog library. This directory contains Prolog files using the extension .pl.
  • A file pack.pl
    This file provides meta-data for the pack.
login to add a new annotation post.

AltStyle によって変換されたページ (->オリジナル) /