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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,9245b8db9abd376c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-14 11:29:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!73155-cm.able.ES!not-for-mail From: "Nazgul" Newsgroups: comp.lang.ada Subject: Out parameters in a function Date: Sun, 14 Apr 2002 20:29:10 +0200 Message-ID: NNTP-Posting-Host: 73155-cm.able.es (212.97.173.155) X-Trace: fu-berlin.de 1018808988 2210022 212.97.173.155 (16 [107015]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:22523 Date: 2002-04-14T20:29:10+02:00 List-Id: Hi, I need to use an output parameter in an Ada function, something like function ReadChar(f: File; c: out character) return boolean; The function must return a boolean, so the only way to read the character is via the 'c' parameter. In other context, I use function (something: tpSomething) return ...; where tpSomething is an access to a record type, and I can modify the contents of the record in the function, but if I use function ReadChar(f: File; c: access character) return boolean; the compiler gives an error when i do something like c:=anything; Is there any way of using c as an output parameter? Thanks. -- (:==================:) �lvaro Iradier airadier@able.es (+34)660133259 (:==================:)