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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-01 12:39:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!feed.cgocable.net!read1.cgocable.net.POSTED!53ab2750!not-for-mail Message-ID: <3EDA5648.9030709@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X (GNAT.IO_Aux.Get_Line) References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED4A94C.2020501@noplace.com> <3ed4c9a2@news.wineasy.se> <3ED4F77F.5060809@noplace.com> <3ED74BC7.3080100@noplace.com> <3ED79621.80809@cogeco.ca> <3ED8F7BC.335C6080@adaworks.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 01 Jun 2003 15:38:48 -0400 NNTP-Posting-Host: 24.150.168.167 X-Complaints-To: abuse@cogeco.ca X-Trace: read1.cgocable.net 1054496669 24.150.168.167 (Sun, 01 Jun 2003 15:44:29 EDT) NNTP-Posting-Date: Sun, 01 Jun 2003 15:44:29 EDT Organization: Cogeco Cable Xref: archiver1.google.com comp.lang.ada:38288 Date: 2003-06-01T15:38:48-04:00 List-Id: Richard Riehle wrote: > "Warren W. Gay VE3WWG" wrote: >>Another example: Include a standard version of GNAT.IO_Aux.Get_Line >>as part of Ada.Text_IO for Ada0Y. Why should people have to keep >>rolling their own, or relying on GNAT code for this? > > While we're making suggestions about Text_IO, why not change > the Get operations to functions for Scalar types. This is one of > the important changes Jerry Van Dijk made in CONSOLE_IO. It > works great. > > Richard Riehle This kinda gets back to the functions and side-effects argument (the object that File_Type points to is undergoing state changes). I think many would be happy to break that rule for GNAT.IO_Aux.Get_Line, since there is no other way to read in a Ada string without knowing in advance its size. But extending this to scalars might be going farther down that road than is "comfortable". For my $0.02 worth, the scalars don't matter. The string is the problem child that needs a solution. Warren.