jupyter-swi-prolog icon indicating copy to clipboard operation
jupyter-swi-prolog copied to clipboard

Make lines starting with `:-` also be queries

Open targodan opened this issue 7 years ago • 1 comments

One often sees lines like :- use_module(library(clpfd)). in examples. This will not currently work in this kernel as every line not starting with ?- is sent to an assertz statement.

Solution: Handle lines starting with :- the same way as lines starting with ?-, i. e. as queries.

targodan avatar Nov 04 '18 11:11 targodan

No, better idea: Treat them as queries but without any output.

targodan avatar Nov 04 '18 11:11 targodan