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,8f802583e5c84fa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: String filtering Date: Mon, 03 Oct 2005 11:25:22 +0200 Organization: Adalog Message-ID: References: <1j92wa9843ylq.16j89wuqatbaj$.dlg@40tude.net> <1b54lwg8s1gk8.1t3jp1cmc2x32$.dlg@40tude.net> <1128236249.692858.50370@g14g2000cwa.googlegroups.com> <4489t4xmz23u.1a00ycr1o6fm7.dlg@40tude.net> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1128333819 16995 195.25.228.57 (3 Oct 2005 10:03:39 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Mon, 3 Oct 2005 10:03:39 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: fr, en In-Reply-To: <4489t4xmz23u.1a00ycr1o6fm7.dlg@40tude.net> Xref: g2news1.google.com comp.lang.ada:5351 Date: 2005-10-03T11:25:22+02:00 List-Id: Dmitry A. Kazakov a �crit : > Get_Token (Stream) & Get_Token (Stream) > -- What would be the result? > > It would be nice if the compiler would reject the above when Get_Token were > impure and & did not specify any evaluation order. But that again brings > back the issue of what is the contract and what is an implementation > detail. Clearly a balance need to be found. > This is one of the things (dependence on evaluation order) that can be checked with AdaControl. Rule: Side_Effect_Parameters -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr