home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / prolog / 1556 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!mcsun!sunic!liuida!curofix!andka
  3. From: andka@IDA.LiU.SE (Andreas Kagedal)
  4. Subject: Re: SICStus Prolog singleton warnings slow down while consulting a file
  5. In-Reply-To: rah@ybrig.zurich.ibm.com's message of Mon, 17 Aug 92 17: 21:26 GMT
  6. Message-ID: <ANDKA.92Aug18114307@aste12.IDA.LiU.SE>
  7. Sender: news@ida.liu.se
  8. Organization: CIS Dept, University of Linkoping, Sweden
  9. References: <1992Aug17.172126.19111@watson.ibm.com>
  10. Date: Tue, 18 Aug 1992 09:43:11 GMT
  11. Lines: 21
  12.  
  13. In article <1992Aug17.172126.19111@watson.ibm.com> rah@ybrig.zurich.ibm.com (Ralf Hauser) writes:
  14.    While porting a big C-Prolog program to SICStus Prolog, I encounter
  15.    the following problem:
  16.  
  17.    To make the program readable, I gave a name to many variables which
  18.    are essentially _ (don't care). When (re)consulting my program,
  19.    every time many screens of such warnings are produced which
  20.    slow down the testing and programming annoyingly.
  21.    [...]
  22.  
  23. A variable is considered "don't care" if it is *prefixed* with _. i.e.
  24. if you want the variable ListOfTerms to be a don't-care variable for
  25. which you don't want a singleton-variable-warning, you can write it as
  26. _ListOfTerms.
  27.  
  28. /Andreas
  29. --
  30. ----------------------------------- < * > ------------------------------------
  31. Andreas Kagedal                           Internet: andka@IDA.LIU.SE
  32. Dep. of Computer and information science  UUCP: {uunet,mcsun,...}!liuida!andka
  33. University of Linkoping, Sweden           BITNET: andka@SELIUIDA
  34.