Skip to content

Instantly share code, notes, and snippets.

@mndrix
Created December 13, 2013 16:55
Show Gist options
  • Save mndrix/7947389 to your computer and use it in GitHub Desktop.
Save mndrix/7947389 to your computer and use it in GitHub Desktop.
SWI Prolog V7 listing a program with dicts
$ cat dicts.pl
person{name: john}.
$ swipl -f none -s dicts.pl
% /tmp/dicts.pl compiled 0.00 sec, 2 clauses
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.1.3)
Copyright (c) 1990-2013 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- listing.
:- thread_local thread_message_hook/3.
:- dynamic thread_message_hook/3.
:- volatile thread_message_hook/3.
ERROR: sub_atom/5: Type error: `atom' expected, found `dict'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment