• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/usr/lib/swipl/library/settings.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl -- Apply predicates on a list
      • lists.pl
      • broadcast.pl
      • shlib.pl -- Utility library for loading foreign objects (DLLs, shared objects)
      • option.pl
      • thread_pool.pl -- Resource bounded thread management
      • gensym.pl
      • settings.pl -- Setting management
        • setting/4
        • setting/2
        • env/2
        • env/3
        • set_setting/2
        • restore_setting/1
        • set_setting_default/2
        • load_settings/1
        • load_settings/2
        • save_settings/0
        • save_settings/1
        • current_setting/1
        • setting_property/2
        • list_settings/0
        • list_settings/1
        • convert_setting_text/3
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl -- Manage operators
      • pairs.pl -- Operations on key-value lists
      • prolog_source.pl -- Examine Prolog source-files
      • quasi_quotations.pl
      • url.pl
      • www_browser.pl -- Open a URL in the users browser
      • prolog_colour.pl
      • record.pl
      • prolog_xref.pl -- Prolog cross-referencer data collection
      • occurs.pl
      • ordsets.pl -- Ordered set manipulation
      • assoc.pl -- Binary associations
      • ugraphs.pl -- Graph manipulation library
      • solution_sequences.pl
      • atom.pl -- Operations on atoms
      • prolog_pack.pl -- A package manager for Prolog
      • git.pl -- Run GIT commands
      • ctypes.pl
      • utf8.pl
      • base64.pl -- Base64 encoding and decoding
      • persistency.pl -- Provide persistent dynamic predicates
      • pure_input.pl
      • nb_set.pl -- Non-backtrackable sets
      • aggregate.pl
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • iostream.pl -- Utilities to deal with streams
      • dialect.pl -- Support multiple Prolog dialects
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • yall.pl -- Lambda expressions
      • prolog_code.pl -- Utilities for reasoning about code
      • dif.pl -- The dif/2 constraint
      • thread.pl -- High level thread primitives
      • predicate_options.pl -- Access and analyse predicate options
      • rbtrees.pl -- Red black trees
      • nb_rbtrees.pl -- Non-backtrackable operations on red black trees
      • sandbox.pl
      • prolog_format.pl -- Analyse format specifications
      • random.pl
      • pprint.pl
      • modules.pl -- Module utility predicates
      • lazy_lists.pl -- Lazy list handling
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • dicts.pl
      • backcomp.pl -- Backward compatibility
      • date.pl -- Process dates and times
      • oset.pl -- Ordered set manipulation
      • prolog_profile.pl -- Execution profiler
      • listing.pl
      • quintus.pl
      • optparse.pl
      • prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
      • make.pl
      • terms.pl -- Term manipulation
      • threadutil.pl -- Interactive thread utilities
      • varnumbers.pl -- Utilities for numbered terms
      • ansi_term.pl
      • zip.pl -- Access resource ZIP archives
      • tableutil.pl -- Table inspection and statistics utilities
      • charsio.pl
      • prolog_trace.pl -- Print access to predicates
      • shell.pl -- Elementary shell commands
      • hashtable.pl -- Hash tables
      • prolog_stack.pl -- Examine the Prolog stack
      • strings.pl
      • heaps.pl
      • prolog_coverage.pl -- Coverage analysis tool
      • system.pl -- System utilities
      • writef.pl
      • prolog_versions.pl
      • prolog_codewalk.pl -- Prolog code walker
      • prolog_debug.pl -- User level debugging tools
      • statistics.pl -- Get information about resource usage
      • macros.pl -- Macro expansion
      • files.pl
      • coinduction.pl
      • edit.pl
      • check.pl
      • intercept.pl -- Intercept and signal interface
      • prolog_config.pl -- Provide configuration information
      • help.pl -- Text based manual
      • wfs.pl -- Well Founded Semantics interface
      • qsave.pl -- Save current program as a state or executable
      • tables.pl -- XSB interface to tables
      • increval.pl
      • base32.pl -- Base32 encoding and decoding
      • codesio.pl -- I/O on Lists of Character Codes
      • sort.pl
      • when.pl
      • prolog_autoload.pl -- Autoload all dependencies
      • prolog_history.pl -- Per-directory persistent commandline history
      • streams.pl -- Manage Prolog streams
      • tty.pl -- Terminal operations
      • portray_text.pl -- Portray text
      • prolog_metainference.pl
      • prolog_wrap.pl -- Wrapping predicates
      • prolog_qlfmake.pl -- Compile the library to QLF format
      • explain.pl
      • exceptions.pl -- Exception classification
 setting(:Name, +Type, +Default, +Comment) is det
Define a setting. Name denotes the name of the setting, Type its type. Default is the value before it is modified. Default can refer to environment variables and can use arithmetic expressions as defined by eval_default/4.

If a second declaration for a setting is encountered, it is ignored if Type and Default are the same. Otherwise a permission_error is raised.

Arguments:
Name- Name of the setting (an atom)
Type- Type for setting. One of any or a type defined by must_be/2.
Default- Default value for the setting.
Comment- Atom containing a (short) descriptive note.
ClioPatria (version V3.1.1-59-g7b9a7a3)