From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e6dde7d957da14ec X-Google-Attributes: gid103376,public From: burnsedbw@aol.com Subject: Re: What's with GNAT? Date: 1996/12/28 Message-ID: <19961228205300.PAA19336@ladder01.news.aol.com>#1/1 X-Deja-AN: 206459812 references: organization: AOL http://www.aol.com newsgroups: comp.lang.ada x-admin: news@aol.com Date: 1996-12-28T00:00:00+00:00 List-Id: Sazonov Cyril said... > I suppose you are missing about the _language_, but not _GNAT_. It seems me > that the thing is that the reurned result is of Global.Cartesian_Vector type > even though the variable Result is of Global.NED_Vector and the type > conversion is to be done _before_ assignment, perfomed by the result return. > So you are to use an intermediate variable to be able to _get_ the wanted > result and the cjnvert it. For example: This is the second reply I received suggesting there is something syntactically wrong with conversion of an "out" parameter. However, I believe the LRM para 6.4.1 (4) clearly states that conversion occurs in _both_ directions. As I have implied, this works (quite well) on every compiler I have ever used. I have never used GNAT, but I have used at least six other validated (Ada '83) compilers. For reasons I will not take time to mention, we consciously chose to avoid declaring intermediate variables whenever possible. But thanks for trying... ----- BwB