home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / ada / 2359 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.0 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!alex
  2. From: alex@cs.umd.edu (Alex Blakemore)
  3. Newsgroups: comp.lang.ada
  4. Subject: Re: Ada 9x Dispatching Question
  5. Keywords: Ada Dispatching Polymorphism
  6. Message-ID: <59661@mimsy.umd.edu>
  7. Date: 13 Aug 92 19:24:35 GMT
  8. References: <334@sps.com>
  9. Sender: news@mimsy.umd.edu
  10. Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
  11. Lines: 17
  12.  
  13. In article <334@sps.com> jot@sps.com (Joe Tallet) writes:
  14. > I have a question concerning the code within Alex's article.
  15. > >procedure client (x : shapes.shape) is
  16. > >  shapes.draw (x); -- dispatches
  17.  
  18. I posted a followup previously - there was an error in my example
  19. the procedure should read
  20.   procedure client (x : shapes.shape'class) is
  21.                                     ^^^^^^^
  22. > My understanding of the dispatching is that the USE clause is necessary.
  23. I dont think so - the draw operation dispatches 
  24. primarily because shapes.shape is tagged.
  25.  
  26.  
  27. -- 
  28. ---------------------------------------------------
  29. Alex Blakemore alex@cs.umd.edu   NeXT mail accepted
  30.