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,d54559bde05f5bb8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!postnews.google.com!w1g2000prk.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Weird string I/O problem Date: Mon, 1 Dec 2008 08:17:32 -0800 (PST) Organization: http://groups.google.com Message-ID: <22b0950a-8867-4f66-9df9-8bf6a62f809b@w1g2000prk.googlegroups.com> References: <0bc7e425-e545-46e8-ae78-2d4f8f6cb09b@c36g2000prc.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1228148252 16087 127.0.0.1 (1 Dec 2008 16:17:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 1 Dec 2008 16:17:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w1g2000prk.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: g2news1.google.com comp.lang.ada:2844 Date: 2008-12-01T08:17:32-08:00 List-Id: On Nov 27, 2:13 am, Jean-Pierre Rosen wrote: > Adam Beneschan a =E9crit :> Set_Col(1) will use the current output file b= y default, so I don't > > think it has any effect on input. Set_Col (Current_Input, 1) is what > > I think you want. > > Sure. Just a shorthand for "calling Set_Col (on the appropriate file) > with a value of 1". I'd strongly recommend avoiding this particular kind of shorthand. Since Set_Col(1) will actually compile in Ada due to overloading, but won't do what you want, it could very easily be confusing. If you want shorthand, try an ellipsis [e.g. Set_Col(..., 1);] because at least that couldn't be confused with something you could actually write in your program. Just my 0.01576 euros... -- Adam