🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #655

Re: SICStus Prolog singleton warnings slow down while consulting a file

#655
From: Andreas Kagedal
Date: Tue, 18 Aug 1992 09:43
21 lines
1537 bytes
In article <1992Aug17.172126.19111@watson.ibm.com> rah@ybrig.zurich.ibm.com (Ralf Hauser) writes:
   While porting a big C-Prolog program to SICStus Prolog, I encounter
   the following problem:

   To make the program readable, I gave a name to many variables which
   are essentially _ (don't care). When (re)consulting my program,
   every time many screens of such warnings are produced which
   slow down the testing and programming annoyingly.
   [...]

A variable is considered "don't care" if it is *prefixed* with _. i.e.
if you want the variable ListOfTerms to be a don't-care variable for
which you don't want a singleton-variable-warning, you can write it as
_ListOfTerms.

/Andreas
--
----------------------------------- < * > ------------------------------------
Andreas Kagedal                           Internet: andka@IDA.LIU.SE
Dep. of Computer and information science  UUCP: {uunet,mcsun,...}!liuida!andka
University of Linkoping, Sweden           BITNET: andka@SELIUIDA
Technical Details
Message-ID: <ANDKA.92Aug18114307@aste12.IDA.LiU.SE>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!liuida!curofix!andka
References: <1992Aug17.172126.19111@watson.ibm.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.prolog
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!liuida!curofix!andka
From: andka@IDA.LiU.SE (Andreas Kagedal)
Subject: Re: SICStus Prolog singleton warnings slow down while consulting a file
In-Reply-To: rah@ybrig.zurich.ibm.com's message of Mon, 17 Aug 92 17: 21:26 GMT
Message-ID: <ANDKA.92Aug18114307@aste12.IDA.LiU.SE>
Sender: news@ida.liu.se
Organization: CIS Dept, University of Linkoping, Sweden
References: <1992Aug17.172126.19111@watson.ibm.com>
Date: Tue, 18 Aug 1992 09:43:11 GMT
Lines: 21