home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6696 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  40 lines

  1. Path: news.ist.utl.pt!news
  2. From: l36612@alfa.ist.utl.pt (Rodrigo Ventura)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Visual E - New E Developer Tool - vedev.gif (0/1)
  5. Date: 31 Mar 1996 21:58:52 GMT
  6. Organization: Instituto Superior Tecnico 
  7. Message-ID: <1415.6664T822T817@alfa.ist.utl.pt>
  8. References: <4je612$dns@pravda.aa.msen.com>
  9. NNTP-Posting-Host: alfa.ist.utl.pt
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12.  
  13. Chad Randall wrote (28-Mar-96 14:00:02):
  14. > And I did not know that C++ could deallocate, *automatically*, allocated
  15. > memory upon program exit, no matter how the program ends.
  16. > Could you tell me how?
  17.  
  18.         The technique is called 'garbage collection', and is as old as LISP.
  19. The catch is to track both the memory allocated and the pointers using it.
  20. When there is no pointers referencing to a memory block, then is is freed.
  21. It's a heavy process, and in stategic times, the run-time system scans for lal
  22. pointers to see for unreferenced memory, freeing it if necessary. This is
  23. called garbage collection. Emacs do sometimes garbage collection, since it is
  24. built on LISP. However this garbage collection capability makes the
  25. programming much more easy and in some sense, more high level.
  26.  
  27.         Regards,
  28.  
  29. --
  30.  
  31.     +--------------------------------------------------------+-----------+
  32.     |         Rodrigo Ventura, alias <Master Yoda>           |     /     |
  33.     +--------------------------------------------------------+  - / ---  |
  34.     |  Electronic Engineering Course, Control and Robotics   |  | |  |   |
  35.     |     Instituto Superior TΘcnico, Lisboa, Portugal       |  | |  |   |
  36.     +--------------------------------------------------------+  - /  |   |
  37.     | L36612@alfa.ist.utl.pt, http://alfa.ist.utl.pt/~l36612 |   /       |
  38.     +--------------------------------------------------------+-----------+
  39.  
  40.