home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / ada / 3850 < prev    next >
Encoding:
Text File  |  1992-12-31  |  2.5 KB  |  54 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!m2.dseg.ti.com!mmeyer
  3. From: mmeyer@m2.dseg.ti.com (Mark Meyer)
  4. Subject: Re: C++ vs. Ada -- Is Ada loosing?
  5. Organization: TI DSEG, Spring Creek, Plano, Tx.
  6. In-Reply-To: srogers@teenwolf.mcc.com's message of Mon, 21 Dec 1992 16:11:05 GMT
  7. References: <16269@goanna.cs.rmit.oz.au> <1992Dec18.141448.13862@mcc.com>
  8.     <EACHUS.92Dec18164915@oddjob.mitre.org> <1992Dec21.161105.9344@mcc.com>
  9. Message-ID: <MMEYER.92Dec31114831@m2.dseg.ti.com>
  10. Lines: 35
  11. Sender: mmeyer@m2.dseg.ti.com (Mark Meyer)
  12. Date: Thu, 31 Dec 1992 17:48:31 GMT
  13.  
  14.  
  15.     I'm new to this group, basically because I'm new to Ada.
  16. Even so, I just have to comment on this:
  17.  
  18. In article <1992Dec21.161105.9344@mcc.com> srogers@teenwolf.mcc.com (Steve Rogers) writes:
  19. > The edition I am looking at is the 3rd edition.
  20.  
  21.     Are you sure?  I'm looking at the 3rd Edition myself.  When
  22. was your copy printed?  This book seems to go through a reprint twice
  23. every year, and mine's from 1990.  I only ask because both your
  24. examples of errors seem to be in error themselves, at least as far as
  25. my copy is concerned.
  26.  
  27. > Two examples: The FRAME program on page 325 violates LRM 9.1.4 - the
  28. > type of the task cannot be used as a typemark within the task itself.
  29. > It's easy to see what the program means, but it doesn't comple. 
  30.  
  31.     No, it doesn't violate 9.1.4.  I could tell that by
  32. inspection.  I was even able to compile it (after removing references
  33. to the FRAME package - I don't know how to get our compiler to build a
  34. library and someone else has the manual).  Nowhere in the task body of
  35. FILTER does anyone try to use FILTER as a type.  In fact, on p. 327
  36. Barnes specifically states, "(The use of the function MAKE_FILTER is
  37. necessary to overcome a rule that in the body of a task type its name
  38. refers to the current task and not the type.)"
  39.  
  40. > There is a task example on page 311 that has nested accepts for the
  41. > same entry which violates LRM 9.5(8).  Again, its clear what the
  42. > program intends, but it has been simplified in a way that keeps it
  43. > from compiling.
  44.  
  45.     I was able to compile this program too.  In my copy of the
  46. book, the accepts are not nested.  Do you have the 3rd Edition,
  47. printed in 1990?  Maybe your book was printed earlier?
  48.  
  49. -- 
  50. Mark Meyer                                               | mmeyer@dseg.ti.com |
  51. Texas Instruments, Inc.,  Plano TX                       +--------------------+
  52. Every day, Jerry Junkins is grateful that I don't speak for TI.
  53. "There's lots of bread in the freezer!"  "No, I threw it out.  Hard as a rock."
  54.