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,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Bounds Check Overhead Date: 30 May 2006 15:20:53 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <0ugu4e.4i7.ln@hunter.axlog.fr> <%P_cg.155733$eR6.26337@bgtnsc04-news.ops.worldnet.att.net> <6H9dg.10258$S7.9150@news-server.bigpond.net.au> <1hfv5wb.1x4ab1tbdzk7eN%nospam@see.signature> <4475DA61.3080001@comcast.net> <44762F55.4050106@cits1.stanford.edu> <87hd3d1472.fsf@ludovic-brenta.org> <1hfxsjh.t88mchrssv9cN%nospam@see.signature> <1hfy4xh.xeesc61gidq8eN%nospam@see.signature> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1149016855 28048 192.74.137.71 (30 May 2006 19:20:55 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 30 May 2006 19:20:55 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news2.google.com comp.lang.ada:4680 comp.lang.fortran:10659 Date: 2006-05-30T15:20:53-04:00 List-Id: nospam@see.signature (Richard Maine) writes: > Rich Townsend wrote: > > > Yes. Without an explicit INTENT(), Fortran defaults to INTENT(inout) > > That is not true. Fortran has 4 distinct intent() values - in, out, > inout, and unspecified. All 4 are different. The unspecified case is > sort of like inout, but it is *NOT* the same. > > The unspecified case is largely historical. ... [snip] Thanks for the good explanation. It seems that for newly-written Fortran, one would want a compiler option that requires the INTENT to be specified. And passing a DO-loop index variable as a parameter should require INTENT(in). In that case, Fortran would be pretty much equivalent to Ada in this regard. - Bob