home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8095 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  3.1 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!milano!uudell!pensoft!usenet
  2. From: ricardo@pencom.com (Ricardo Parada)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: The Darker Side of C++ (forwarded)
  5. Message-ID: <1993Jan12.234017.14834@pencom.com>
  6. Date: 12 Jan 93 23:40:17 GMT
  7. References: <1iv5ijINN8ba@pith.uoregon.edu>
  8. Sender: usenet@pencom.com (Usenet Pseudo User)
  9. Distribution: usa
  10. Organization: Pencom Software
  11. Lines: 71
  12.  
  13. In article <1iv5ijINN8ba@pith.uoregon.edu> bjorn@darmok.uoregon.edu (Bjorn S.  
  14. Fjeld Pettersen) writes:
  15. > In article <1993Jan12.165154.26915@dvorak.amd.com> rpomeroy@aunext1.amd.com  
  16. > (Ron Pomeroy x(Coop)) writes:
  17. > > In article <63320@mimsy.umd.edu> alex@cs.umd.edu (Alex Blakemore) writes:
  18. > > >>I thought some Obj-C users would find it interesting.
  19. > > [munch munch]
  20. > > >>
  21. > > >>                       ANNOUNCEMENT OF A LECTURE
  22. > > >>                       
  23. > > >>                    
  24. > > >>                    -- "THE DARKER SIDE OF C++" --
  25. > > >>                    
  26. > > >>                     Wednesday, January 27, 1993
  27. > > >>               15.15 o'clock (end at 17.00 at the latest)
  28. > > >>
  29. > > >>
  30. > > >>          Ecole Polytechnique Federale de Lausanne - Site Ecublens
  31. > > >>          Batiments du Departement d'informatique - room INR 219
  32. > > >>         
  33. > > >>
  34. > > >>           by MARKKU SAKKINEN, University of Jyvaskyla, Finland
  35. > > >>
  36. > > >>
  37. > > [munch munch]
  38. > > 
  39. > > >>The worst disadvantage of C++ at the moment is political:  accepting
  40. > > >>C++ as the standard OO language de facto tends to kill other existing
  41. > > >>languages, and stifle the development of a new generation of
  42. > > >>essentially better OO languages.
  43. > > 
  44. > > Aaaaaaaaaamen!!
  45. > > 
  46. > > --
  47. > > Ronald Pomeroy        [Objective-Cruntime: [Smalltalk runtime]];
  48. > When I can do this in Obj-C I would be happy (tm):
  49. >     String a = "hello", b = " ", c = "world";
  50. >     cout << a + b + c + '\n';
  51. > Until then things (tm) look soooo much prettier in C++.
  52. > (BTW, where is that multiple inheritance in Obj-C???)
  53.  
  54. Where are those productivity gains in C++?  Where is that real run-time  
  55. binding in C++?  Where are those Distributed Objects seamlessly integrated  
  56. into the language?  Sorry, but you won't see that on C++?
  57.  
  58. Operator overloading **is cool and simplifies notation**.  It's pretty handy  
  59. for complex numbers and strings.  But it does NOT have as much impact on code  
  60. maintenance and programmer productivity as ObjC's features.
  61.  
  62. As of multiple inheritance, I usually use composite objects in ObjC.  To build  
  63. a SavePanel you don't inherit from a button and from a window you use a button  
  64. (i.e. a button that says Save and another for Cancel) object and a window (or  
  65. panel) object.  The window will contain a button object, making it a composite  
  66. object.  It's cleaner.  If you find a case where composite objects do not  
  67. solve your problem and you have to use multiple inheritance let me know 'cause  
  68. I'm still looking for a practical example.
  69.  
  70. That's why I like ObjC++.  But to me:
  71.  
  72.      ObjC >> C++ 
  73.  
  74. where >> means "much greater than."  I'm not being religious, just  
  75. "Objective."  Keep the one you like better!
  76.  
  77. --
  78. Ricardo J. Parada
  79. Pencom Software
  80.