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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news.etla.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Lazy evaluation Date: Tue, 23 Sep 2014 21:12:57 +0200 Organization: cbb software GmbH Message-ID: <1hwleoxlmvh6e$.uvanyfuy5yng.dlg@40tude.net> References: <85idneIsZeZHqYHJRVn_vwA@giganews.com> <11up8h3pwcwf$.1tmy4g7sb6csv$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: ZB2Fb2q1fa4xpMpNKFqV6Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:189110 Date: 2014-09-23T21:12:57+02:00 List-Id: On Tue, 23 Sep 2014 15:01:29 +0300, Victor Porton wrote: > Dmitry A. Kazakov wrote: > >> Consider the problem of evaluation order: >> >> X : String := String'Input (File) & String'Input (File); -- Ill >> defined! > > I don't understand why it's ill defined. Please explain. If the stream contains "a" followed by "b", X can be "ab" or "ba" depending on the evaluation order of arguments. Compare it with expr1 and expr2 vs. expr1 and then expr2 -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de