Search found 3 matches

by wyvie
15 Nov 2013 9:59
Forum: Visual Prolog
Topic: Newb question about variable not completely bound
Replies: 4
Views: 2473

Well, more errors now :) read_list([]) is the only clause that actually works, as the empty list is the first and most obvious one to return true. And it doesn't even make an attempt to read anything. Also it gives two warnings about unreachable code. I tried to move this clause, and it has just bro...
by wyvie
15 Nov 2013 8:03
Forum: Visual Prolog
Topic: Newb question about variable not completely bound
Replies: 4
Views: 2473

by wyvie
15 Nov 2013 7:26
Forum: Visual Prolog
Topic: Newb question about variable not completely bound
Replies: 4
Views: 2473

Newb question about variable not completely bound

Hello. I've recently started learning prolog and am testing around some stuff. Yesterday i got some troubles with reading a list from console. Well, i need to get a list of integers greater then zero. So i'm reading them recursively from console in the first clause and want to fall into the second c...