home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!clsi!paulg
- From: paulg@clsi.COM (Paul Graham)
- Subject: Subtype check on RETURN statement
- Message-ID: <PAULG.92Dec22155557@algol.clsi.COM>
- Sender: usenet@clsi.COM
- Organization: CAD Language Systems Inc.
- Distribution: comp.lang.ada
- Date: 22 Dec 92 15:55:57
- Lines: 11
-
-
- Why is it that the subtype of a RETURNed expression must match the
- return subtype of the containing function, without allowing for an
- implicit array subtype conversion? That is, why are the rules for the
- RETURN statement different from the corresponding rules for a variable
- assignment?
-
- Paul Graham (paulg@clsi.com)
- --
- Paul Graham (paulg@clsi.com, support@clsi.com)
- CAD Language Systems, Inc. 410-992-5700
-