Can anyone explain this

roelof <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <1394210210216-14432.post__34020.6180736006$1394210329$gmane$org@n3.nabble.com>
Hello, 

Im following the Adventure in Prolog tutorial from Amzi.

then I see this : location(X, kitchen), write(X) ,nl, fail.

Why not just using : location(X, kitchen) 
I can understand why write(X) is mentioned. that's  to write the item on
screen.
But why stop with fail ?

Roelof




--
View this message in context: http://swi-prolog.996271.n3.nabble.com/Can-anyone-explain-this-tp14432.html
Sent from the SWI Prolog mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.