home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / prolog / 1616 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!utcsri!skule.ecf!reidld
  3. From: reidld@ecf.toronto.edu (Lloyd D Reid)
  4. Subject: The Effect of the Cut on Prolog Stack
  5. Message-ID: <BtnvKp.4nD@ecf.toronto.edu>
  6. Organization: University of Toronto, Engineering Computing Facility
  7. Date: Thu, 27 Aug 1992 21:26:49 GMT
  8. Lines: 22
  9.  
  10.   I have a question concerning the effect of the cut on the global 
  11.   stack usage for prolog.
  12.  
  13.  
  14.  If I enter the query,
  15.  
  16.  > test,!,test.
  17.  
  18.  and test is a predicate which uses X amount of global stack space
  19.  will the above require 2X global stack or could the cut reduce it ? 
  20.  For MPROLOG by Logicware it appears that 2X is used. 
  21.  Is this a problem with their software or with prolog interpreters 
  22.  in general since it would seem that the stack would not be required
  23.  after the cut.
  24.  
  25.                                             Thanks in advance,
  26.                                               Peter Grant
  27.  
  28.  Note: If you are responding with mail, mail to:
  29.        reidld@bullet.ecf.utoronto.ca
  30. -- 
  31. reidld@ecf.toronto.edu (Daniel Chisholm)
  32.