home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / ada / 3802 < prev    next >
Encoding:
Text File  |  1992-12-22  |  722 b   |  23 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!clsi!paulg
  3. From: paulg@clsi.COM (Paul Graham)
  4. Subject: Subtype check on RETURN statement
  5. Message-ID: <PAULG.92Dec22155557@algol.clsi.COM>
  6. Sender: usenet@clsi.COM
  7. Organization: CAD Language Systems Inc.
  8. Distribution: comp.lang.ada
  9. Date: 22 Dec 92 15:55:57
  10. Lines: 11
  11.  
  12.  
  13. Why is it that the subtype of a RETURNed expression must match the
  14. return subtype of the containing function, without allowing for an
  15. implicit array subtype conversion?  That is, why are the rules for the
  16. RETURN statement different from the corresponding rules for a variable
  17. assignment?
  18.  
  19. Paul Graham    (paulg@clsi.com)
  20. --
  21. Paul Graham            (paulg@clsi.com, support@clsi.com)
  22. CAD Language Systems, Inc.    410-992-5700
  23.