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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6977f514d4290e5e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!g39g2000pri.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: How to put Floats in an Output File? Date: Fri, 9 Jan 2009 13:28:15 -0800 (PST) Organization: http://groups.google.com Message-ID: <93480726-8d5e-45a6-a924-a831fe19ef00@g39g2000pri.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1231536495 32209 127.0.0.1 (9 Jan 2009 21:28:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 9 Jan 2009 21:28:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g39g2000pri.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4204 Date: 2009-01-09T13:28:15-08:00 List-Id: On Jan 9, 1:14 pm, tolkamp wrote: > I try to put float values into a file using the following code: > > package Float_Io is new Text_Io.Float_Io (Float); > > Outp_File : File_Type; > Value : Float; > Create (Outp_File, Out_File, Outp_Filename); > Put (Outp_File, Float_Io.Put (Value)); > > Compilation results in the following error message: > > no candidate interpretations match the actuals: > missing argument for parameter "Item" in call to Put > context requires function call, found procedure name Float_IO.Put is a procedure, not a function. -- Adam