Re: Can anyone explain this
"Marco Verpelli" <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <55074958E7A448B19D465AA7507764E5@PC> |
Maybe to force recursion? Marco -----Messaggio originale----- From: roelof Sent: Friday, March 07, 2014 5:36 PM To: [email protected] Subject: [SWIPL] Can anyone explain this 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. _______________________________________________ SWI-Prolog mailing list [email protected] https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog