Changeset 4490 for trunk/library

Show
Ignore:
Timestamp:
10/06/08 08:58:28 (3 months ago)
Author:
pmoura
Message:

Added a new library object, "gensym", defining predicates for generating unique atoms (object protocol based on the "gensym" module of SWI-Prolog).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/gensym.lgt

    r4489 r4490  
    4949        (   retract(base_(Base, OldInt)) -> 
    5050            NewInt is OldInt + 1 
    51         ;   NewInt is 0 
     51        ;   NewInt is 1 
    5252        ), 
    5353        asserta(base_(Base, NewInt)),