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,CP1252 X-Google-Thread: 103376,f3437064e1091fec X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-11 14:26:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail Message-ID: <3F0F2B68.2060900@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What evil would happen? References: <5ad0dd8a.0307111151.4a08f95a@posting.google.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 24.62.164.137 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc51.ops.asp.att.net 1057958798 24.62.164.137 (Fri, 11 Jul 2003 21:26:38 GMT) NNTP-Posting-Date: Fri, 11 Jul 2003 21:26:38 GMT Organization: Comcast Online Date: Fri, 11 Jul 2003 21:26:38 GMT Xref: archiver1.google.com comp.lang.ada:40209 Date: 2003-07-11T21:26:38+00:00 List-Id: Wojtek Narczynski wrote: > What would happen if a procedure could return a value like a function, > or a function could accept an out parameter? Would it make procedures > less procedural? Or impure functions even less impure? Or is there a > reason for this in compiler implementation details? > > I feel like with SML like tagged union datatypes I'd be done long > ago... Is there an AI for this maybe? Yes, several, and some language study notes, and I think some sections in the Ada Rationale. > I am trying to create a parser for CLFF files. I don't follow from this to what you are asking. Assuming you want to parse common log file format files which have a format of remotehost rfc931 authuser [date] "request" status bytes (per http://www.w3.org/Daemon/User/Config/Logging.html) I can't imagine why you would be asking about such a feature. But if I were you I would be looking at Ada.Strings.Unbounded. -- Robert I. Eachus �In an ally, considerations of house, clan, planet, race are insignificant beside two prime questions, which are: 1. Can he shoot? 2. Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and Steve Miller.