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

  1. Newsgroups: comp.lang.eiffel
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!gmaughan
  3. From: gmaughan@monu6.cc.monash.edu.au (Glenn Maughan)
  4. Subject: How to check for state changed in objects?
  5. Message-ID: <1992Aug16.043924.25105@monu6.cc.monash.edu.au>
  6. Organization: Monash University, Caulfield Campus
  7. Date: Sun, 16 Aug 1992 04:39:24 GMT
  8. Lines: 39
  9.  
  10. Does anyone know if there is a mechanism for checking if an object
  11. has changed state?  I am trying to implement incremental persistence and
  12. need to know if an object has changed state when compared to the same object
  13. on disk.
  14.  
  15. Is there a way to do it in Eiffel code.  If there is a way
  16. in version 3 I would like to know also.
  17.  
  18. I located the definition for OBJECT in the C code of Eiffel 2.3
  19. (finding it wasn't a pleasant experience).
  20.  
  21. typedef struct OBJECT {
  22.     INFO info;
  23.     ...
  24.     long date;       <-- can this be used?
  25. } OBJECT, *OBJPTR;
  26.  
  27.  
  28. Does the date item hold information about the creation date?  Would I be able
  29. to use it?
  30.  
  31. I would prefer to stay away from writing low level C to do check this.
  32. I have also thought of checking state changed by making a copy of all
  33. attributes in an object, but that defeats the purpose of making efficient
  34. persistent mechanisms.
  35.  
  36. Any ideas?
  37.  
  38. Glenn Maughan
  39. Software Development Honours
  40. Monash University
  41. gmaughan@monu6.cc.monash.edu.au
  42.  
  43.  
  44. -- 
  45. --------------------------------------------------------
  46. Glenn Maughan
  47. Software Development Honours
  48. email: gmaughan@monu6.cc.monash.edu.au
  49.