Re: Can anyone explain this
Roelof Wobben <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
I do not know. IM a beginner and for me it looks like just doing the location(X, kitchen) would do the job. Roelof ---------------------------------------- > From: [email protected] > To: [email protected]; [email protected] > Subject: Re: [SWIPL] Can anyone explain this > Date: Fri, 7 Mar 2014 17:44:50 +0100 > > 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 >