home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / lib_std / memo.e < prev    next >
Text File  |  1999-06-05  |  999b  |  35 lines

  1. -- This file is  free  software, which  comes  along  with  SmallEiffel. This
  2. -- software  is  distributed  in the hope that it will be useful, but WITHOUT 
  3. -- ANY  WARRANTY;  without  even  the  implied warranty of MERCHANTABILITY or
  4. -- FITNESS  FOR A PARTICULAR PURPOSE. You can modify it as you want, provided
  5. -- this header is kept unaltered, and a notification of the changes is added.
  6. -- You  are  allowed  to  redistribute  it and sell it, alone or as a part of 
  7. -- another product.
  8. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  9. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  10. --                       http://SmallEiffel.loria.fr
  11. --
  12. class MEMO[E]
  13.  
  14. feature 
  15.  
  16.    item: E;
  17.  
  18.    set_item(i: like item) is
  19.       do
  20.          item := i;
  21.       ensure
  22.          item = i
  23.       end;
  24.  
  25.    clear is
  26.          -- Reset `item' with the default value.
  27.       local
  28.          default_item: like item;
  29.       do
  30.          item := default_item;
  31.       end;
  32.  
  33. end -- MEMO[E]
  34.  
  35.