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,ce0900b60ca3f616 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-06 19:42:09 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Lazy Evaluation [Side-Effects in Functions] Date: 6 Nov 2001 19:42:09 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0111061942.3fa463fb@posting.google.com> References: <3BE35498.9F6381A2@acm.org> <9s230d$107b5a$2@ID-25716.news.dfncis.de> <5ee5b646.0111040507.5ca7ea23@posting.google.com> <9s3tl3$111hco$1@ID-25716.news.dfncis.de> <5ee5b646.0111041846.93f3e07@posting.google.com> <9s5eub02j61@drn.newsguy.com> <3be666fe.6426140@News.CIS.DFN.DE> <9s7bfb$11boa1$1@ID-25716.news.dfncis.de> <3be7a31d.1736453@News.CIS.DFN.DE> <9s941c$11mrei$2@ID-25716.news.dfncis.de> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1005104529 30099 127.0.0.1 (7 Nov 2001 03:42:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Nov 2001 03:42:09 GMT Xref: archiver1.google.com comp.lang.ada:15967 Date: 2001-11-07T03:42:09+00:00 List-Id: "Nick Roberts" wrote > Briefly, the combination of lazy evaluation > and side-effects, as such, would > be rather like the combination of a keg of TNT and a > blowtorch. Well yes, of course this is a text book answer, but in fact we are not talking about lazy evaluation here, but rather call by name (referring to call by name as lazy evaluation is a recipe for confusion). Of course there is no particular conflict between side effects and call by name, as anyone who has programmed in Algol-60 extensively is perfectly aware.