home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / forth / compiler / fpc / source / p4_16bs.seq < prev    next >
Text File  |  1990-04-16  |  429b  |  28 lines

  1. \ Balraj Sidhu   Set: 14D4
  2. \ Comp 462 - Forth
  3. \ Date: April 16, 1990
  4. \ Problem 4.16
  5.  
  6.  
  7. create data 20 allot
  8.  
  9. : clear-dataf ( -- )
  10.         data 20 0 fill ;
  11.  
  12. : clear-datae ( -- )
  13.         data 20 erase ;
  14.  
  15. COMMENT:
  16.  
  17. In the above words the clear-dataf (using fill) is faster then
  18. clear-datae (using erase).  This is because the word erase calls the word
  19. fill with a 0 for the fill operation.
  20.  
  21. COMMENT;
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.