home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6530 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.9 KB

  1. Path: beavis.kronos.com!usenet
  2. From: porter_woodward@internet.kronos.com (Porter Woodward)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Visual E - New E Developer Tool - vedev.gif (0/1)
  5. Date: 29 Mar 1996 11:32:48 GMT
  6. Organization: Software Quality Assurance
  7. Message-ID: <4jghp0$okb@beavis.kronos.com>
  8. References: <68772090@0humpty.tomate.tng.oche.de> <Dou4u8.2H1@cix.compulink.co.uk> <4j7kil$pd3@pravda.aa.msen.com> <4jd2u9$1vac@thebes.waikato.ac.nz> <4je612$dns@pravda.aa.msen.com>
  9. NNTP-Posting-Host: 158.228.60.147
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <4je612$dns@pravda.aa.msen.com>, crandall@mail.msen.com says...
  15. >
  16. >Stephen B Hodge (sbh@cs.waikato.ac.nz) wrote:
  17. >: Chad Randall (crandall@mail.msen.com) wrote:
  18. >: : 
  19. >: : Design flaws?  The only thing I can think of is a lack of strong
  20. >: : datatyping.  Other than that, it has a better design in places than C does.
  21. >: : And E is close to Java in design.  Exception handling, no messing with
  22. >: : pointers, automatic memory deallocation, etc.  If Java is the next big thing,
  23. >: : than E can't be too bad.
  24. >: 
  25. >: Java is based on C++. All of the things you have mentioned are in C++.
  26. >
  27. >Java is based, *in part*, on C++.  The keywords, style, grammar and format is
  28. >very close.  But, Java's underside is quite clearly different than C++.  I quote
  29. >from "Java in a Nutshell" pg 15
  30. >
  31. >  "C++ programmers should beware, though:
  32. >While Java borrows a lot of terminology and even syntax from C++, the
  33. >analogies between Java and C++ are not nearly as strong as those between Java
  34. >and C.  C++ programmers should be careful not to be lulled into a false sense 
  35. >of familiarity with Java because the languages share a number of keywords!"
  36. >
  37. >Java has no pointers.  And while E does not eliminate pointers (it can't
  38. >in theory, and still be Amiga-OS friendly).  It hides pointers much
  39. >better than C or C++ does.
  40.  
  41.     This is not necessarily a bad thing.  Although pointers can
  42. be a good thing, they are often the most confusing for a new student
  43. of programming.
  44.  
  45. >
  46. >And I did not know that C++ could deallocate, *automatically*, allocated
  47. >memory upon program exit, no matter how the program ends.
  48. >Could you tell me how?
  49. >
  50. >I did forget that C++ has exception handling.  But it does lack
  51. >an equivalent to "EXCEPT DO", which I use alot.
  52.  
  53. You're quite right!  JAVA has automatic garbage collection, freeing
  54. the memory of structures no longer in use - C++ does not do this -
  55. hence the need to create "destructors" as well as "constructors".
  56.  
  57. Yes - although C++ has exception handling - it is not nearly so easy
  58. to code as it is in JAVA.  Simply 'Throw' the exception after 'Try'ing
  59. to do something - then write a few 'catch' routines and you're all set.
  60.  
  61. Of course, one downside I see is the lack of multiple inheritence.
  62. Although one can argue either way - that multiple inheriting systems
  63. promote lots of uneeded stuff being propogated throughout the system,
  64. to it getting overy complex - I think that 1 level of inheritence is pretty
  65. limiting.
  66.  
  67. -- 
  68. ****************************************************************
  69.              (Oh, so that's what's on the other side!)          
  70.             o   "Sometimes truth IS stranger than fiction."     
  71.            o  I can be reached at:                              
  72.           o   porter_woodward@internet.kronos.com -daytime      
  73.        \|/    OR     woodward@acad.wit.edu        -nights       
  74.        @ @    OR   http://www.kronos.com/~porter/ -always       
  75. ___oOO_(_)_OOo__________________________________________________
  76.    |   |   |   |   |   |   |   |   |   |   |   |   |INTEL  |   |
  77.    |+------------------------------------+ | @ |   |  OUTSIDE  |
  78.    ||  //\                               | |   |   |   |   |   |
  79.    ||\X/--\MiGA - Make up your own mind. | |   |   |JUST SAY NO|
  80. @  |+------------------------------------+ |   |  o|   | TO|   |
  81.    |   |   |   |   |   |   |   |   |   |   |*  |   | Micro$oft |
  82. ////////////////////////////////////////////////////////////////
  83.  
  84.