home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / system / 10193 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.9 KB  |  60 lines

  1. Newsgroups: comp.sys.mac.system
  2. Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!bpb9204
  3. From: bpb9204@tamsun.tamu.edu (Brent)
  4. Subject: Re: Windows NT (Not a flame.)  and C++ comments
  5. Message-ID: <1992Jul21.192200.18180@tamsun.tamu.edu>
  6. Followup-To: comp.sys.mac.system
  7. Summary: C++ is not for everything.
  8. Sender: bpb9204@tamsun.tamu.edu
  9. Organization: Texas A&M Univ., Inc.
  10. References: <1992Jul21.124631.8584@msc.cornell.edu>
  11. Date: Tue, 21 Jul 1992 19:22:00 GMT
  12. Lines: 46
  13.  
  14. maynard@esther.msc.cornell.edu (Maynard J. Handley) writes:
  15. | We hear about how great object-orientation is (and I
  16. |agree completely- I now shudder at the thought of coding in anything but
  17. |C++) but what does object-orientation for OS get you, that a decent C++ API
  18. |to a traditional OS does not?
  19.  
  20. You are right, OOP is a good thing, but its features certainly can't be
  21. used for everything.  I'd personally shudder at writing a UNIX C compiler
  22. in C++.  What would the objects be?  Would they be function definitions?
  23. Could they feasibly be individual statements where compound statement objects
  24. would have other statement objects?  Yes, you could write it in C++ without
  25. using all the object stuff, but the basic compilation process is too 
  26. algorithmically intensive to bother with objects.  The ++ overhead would
  27. slow down numerous method calls (the way C++ objects are implemented).
  28.  
  29. The almost-classic example of an OOP application is the object
  30. drawing program.  This type of application lends itself greatly
  31. to OOP.  (A program like MacDraw).
  32.  
  33. These above questions are exactly what I asked a fellow classmate in my
  34. compiler design class.  We had to write a Pascal compiler using whichever
  35. system we wanted.  I did it straightforwardly in C, and he talked about doing
  36. it in C++.  He didn't turn in a working project.  This has two interpretations:
  37. either the C++ realm was not fit for the project, or his programming skills
  38. weren't fit for the project.  I personally think it was a combination of
  39. the two; he had heard how great C++ is for everything and that he was trying
  40. to make it work, but couldn't get it going.  I think this is more the case
  41. because of what I know about him.  However, I'll never know for sure.
  42.  
  43.  
  44. |Will Apple have to face the inevitable, and become a sort of high level
  45. |utility provider company, selling modules for the WinNT kernel that give it
  46. |a decent user interface with all the Mac customizability and ease of use we
  47. |expect?
  48.  
  49. ...or will our BatCorporation escape the wrath and silliness of the computer
  50. industry to remain the leaders they always potrayed themselves as?  
  51. Stay tuned, same battime, same batchannel...
  52.  
  53.  
  54. -Brent
  55. -- 
  56. +-------------------------+  Pale Terror trembling guards the fountain's head,
  57. |Brent P. Burton, N5VMG   |  And rouses Fancy on her wakeful bed;
  58. |bpb9204@tamsun.tamu.edu  |  From realms of viewless spirits tears the veil,
  59. +-------------------------+  And there reveals the unutterable tale. - M. Lewis
  60.