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-02 17:19:21 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X (GNAT.IO_Aux.Get_Line) Date: Mon, 2 Jun 2003 19:20:33 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: 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> <3EDA5648.9030709@cogeco.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:38413 Date: 2003-06-02T19:20:33-05:00 List-Id: Warren W. Gay VE3WWG wrote in message <3EDA5648.9030709@cogeco.ca>... >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. Moreover, Richard said "change", which is an immediate non-starter. "Add", perhaps, but we're not going to make incompatible changes without lots of justification, and this would come close. Randy.