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

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!mcsun!sunic!sics.se!eua.ericsson.se!etxaha
  3. From: etxaha@eua.ericsson.se (Anders Hallberg)
  4. Subject: Re: SICStus Prolog singleton warnings slow down while consulting a file
  5. Message-ID: <1992Aug18.070600.25043@eua.ericsson.se>
  6. Keywords: singleton
  7. Sender: news@eua.ericsson.se
  8. Nntp-Posting-Host: euas20.eua.ericsson.se
  9. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  10. References: <1992Aug17.172126.19111@watson.ibm.com>
  11. Date: Tue, 18 Aug 1992 07:06:00 GMT
  12. Lines: 14
  13.  
  14. rah@ybrig.zurich.ibm.com (Ralf Hauser) writes:
  15.  
  16.  
  17. >Does anybody know, how to suppress these warnings or to
  18. >maintain the same expressivity of code without creating those
  19. >"singleton variables".
  20.  
  21. I would not advice turning those warnings off.  They can save you the
  22. effort of trying to locate subtle bugs caused by miss-spelled variable
  23. names.  I usually precede each predicate with a comment showing the
  24. head of the predicate with full variable names and then use _ in the
  25. clauses to avoid loads of warnings.
  26.  
  27.     /Anders Hallberg
  28.