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

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!mcsun!inesc.inesc.pt!dec4pt.puug.pt!unl!unl!px
  3. From: px@fct.unl.pt (Joaquim Baptista [pxQuim])
  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: <PX.92Aug19182127@tche.fct.unl.pt>
  7. Sender: news@fct.unl.pt (USENET News System)
  8. Organization: Universidade Nova de Lisboa -- Lisbon, Portugal
  9. References: <1992Aug17.172126.19111@watson.ibm.com>
  10. Date: Wed, 19 Aug 1992 18:21:27 GMT
  11. Lines: 21
  12.  
  13. In article <1992Aug17.172126.19111@watson.ibm.com>
  14. rah@ybrig.zurich.ibm.com (Ralf Hauser) writes:
  15.  
  16.    To make the program readable, I gave a name to many variables which
  17.    are essentially _ (don't care). When (re)consulting my program,
  18.    every time many screens of such warnings are produced which
  19.    slow down the testing and programming annoyingly.
  20.  
  21.    Does anybody know, how to suppress these warnings or to
  22.    maintain the same expressivity of code without creating those
  23.    "singleton variables".
  24.  
  25. In many Prologs, variables starting with _ are taken to be don't care.
  26. I often used names such as _List, which mark the variable as don't
  27. care but still identify its meaning.
  28. ____
  29. Joaquim Baptista, aka pxQuim
  30.  
  31. Email: px@fct.unl.pt  Voice: +351-1-295 3220  Fax: +351-1-295 5641
  32. Snail: Dept Informatica, Universidade Nova de Lisboa
  33.        P-2825 Monte de Caparica, Portugal
  34.