Re: ALLOCATABLE arrays

From: Richard Maine (nospam_at_see.signature)
Date: 01/07/04


Date: Tue, 06 Jan 2004 18:56:28 -0800


"Jugoslav Dujic" <jdujicREMOVE@uns.ns.ac.yu> writes:

> Automatic arrays (with all their limitations) are implemented on the
> stack in order to be fast; if speed is not an issue for you, then
> use an allocatable;...

I disagree with the implication that speed is the only reason to use
automatics. Perhaps you didn't mean to imply that, but that's what I
read in the clause quoted above. While it is one reason, it is not
the only. The other (and a very big one in my mind) is that
automatics are so simple to write. If you can live with their
limitations (notably the necessity for the bounds to be specification
expressions, the lack of error handling, and the fact that their
lifetime is always that of one procedure invocation), then they are a
lot simpler to write (and understand) than allocatables. Heck, people
keep guessing the syntax without having been told about it.

-- 
Richard Maine
email: my last name at domain
domain: sumertriangle dot net


Relevant Pages

  • Re: How It Works: ed senters Might Makes Right philosophy
    ... will not conform to the dictates of reason and justice without ... justice without constraint. ... I disagree WITH YOU that YOU SHOULD put guns, tanks, and nuclear ...
    (misc.taxes)
  • Re: Possible bug in Calendar
    ... fact that no reasonable person would disagree with. ... If you intend to be taken seriously, you need to act less like a third-tier goon that doesn't even rate "henchman" from some bad mobster movie and more like a Harvard graduate with some skill in a complex and intelligence-demanding field, preferably Java programming given the group topic. ... "Culture" in academia these days tends to mean Shakespeare, Conrad, Twain, Milton, and the like -- not Latin. ... I'm glad you've finally decided to come around to my point of view, and that you've finally seen reason. ...
    (comp.lang.java.programmer)
  • Re: How It Works: ed senters Might Makes Right philosophy
    ... will not conform to the dictates of reason and justice without ... justice without constraint. ... I disagree WITH YOU that YOU SHOULD put guns, tanks, and nuclear ...
    (misc.taxes)
  • RE: Regarding Alephs "Smashing the Stack for fun and Profit"
    ... One major reason is that on newer ... Regarding Aleph's "Smashing the Stack for fun and Profit" ... machine code came on board, etc. Aleph One's ...
    (Security-Basics)
  • Re: I want to do a youth fireside on the following topic--want feedback:
    ... I think that my words alone are not adequate to explain my position, ... "Ours is to explain our position through reason, friendly persuasion, ... Contention builds walls and puts ... How important it is to know how to disagree without ...
    (soc.religion.mormon)