🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #26

Re: nl/1 in SICStus prolog

#26
From: Cerebus
Date: Fri, 30 Oct 1992 16:08
27 lines
1670 bytes
roland@sun-2.cs.uct.ac.za (Roland Paterson-Jones) writes:

>While running a prolog program written in SICStus, our SBProlog3.1 whinged
>about the predicate nl/1:

>> process_back_arcs:-
>>     retract(arc(X,Y,back)),
>>     display('processing a new back'), nl(user_output),
>>     ( node(Y,I_Y,_) -> true ),	^^^^^^^^^^^^^^^
>>     find_cycles([Y],X,I_Y,[Y]),
>>     process_back_arcs.

>What is this intended to do, and what is the significance of the atom
>'user_output'?

Unless I'm very much mistaken, this is intended to send an end-of-line
character to whatever user_output has been defined as (the console, a
file, etc.), and move to the next line.

-- Matt
+------------------------------+------------------------------------------+
|  Matt "Matt" Blum            | Let's make George Bush the 33rd          |
|                              |     ex-President of the United States!   |
| mblum@cs.brandeis.edu        |                                          |
|                              | I am not politically incorrect.          |
|  (617)736-5894               | I am politically challenged.             |
+------------------------------+------------------------------------------+
Technical Details
Message-ID: <mblum.720461332@chaos.cs.brandeis.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.centerline.com!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!mblum
References: <roland.720373791@sun-2>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.prolog
Path: arc1-ca.pugleaf.net!sparky!uunet!news.centerline.com!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!mblum
From: mblum@chaos.cs.brandeis.edu (Cerebus)
Subject: Re: nl/1 in SICStus prolog
Message-ID: <mblum.720461332@chaos.cs.brandeis.edu>
Sender: news@news.cs.brandeis.edu (USENET News System)
Organization: Brandeis University
References: <roland.720373791@sun-2>
Date: Fri, 30 Oct 1992 16:08:52 GMT
Lines: 27