Logical assignment of Prolog terms


This is an almost portable, almost logical implementation of destructive assignment.
  1. Assignable terms and logical assignment
    assignable(Var) makes Var an assignable term. Initial state of it is an empty assignable term. An assignable terms have a value, and the value may be changed.
  2. Unification between assignable terms.
    Undefined.
    Also, the results of decomposing an assignable term using arg/3,functor/3,=../2 are undefined.
  3. History
    01/03/2005 Error checking and and <+compatibility with Prolog implementations.
    12/31/2004 First distribution.
  4. Implementation
    http://www.kprolog.com/en/logical_assignment/assignable.pl
    is the implementation (using setarg/3).
    And the pure logical subset implementation is also available at
    http://www.kprolog.com/en/logical_assignment/assign_logial.pl

    Implementations and examples are checked against SWI-Prolog, GNU-Prolog and K-Prolog, distributed under Open Software License version 2.1, with NO WARRANTY.
  5. Example programs


Enjoy,


(C) Nobukuni Kino, KLS Research, Inc.
Comments and questions are welcome. kino@kprolog.com