Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!newstop!exodus!exodus-bb!khb From: khb@chiba.Eng.Sun.COM (Keith Bierman - SPD Advanced Languages) Newsgroups: comp.lang.fortran Subject: Re: Dimensioning arrays at run-time, best way? Message-ID: Date: 19 Sep 90 17:14:11 GMT References: <1990Sep18.115704.20642@msuinfo.cl.msu.edu> <191@matrix.mathworks.com> Sender: news@exodus.Eng.Sun.COM Organization: Sun MegaSystems Lines: 24 In-reply-to: moler@matrix.mathworks.com's message of 18 Sep 90 23:23:20 GMT Cleve and others have pointed out that my code was missing a %val. This was intentional; I should have been more explicit and stated clearly that I was providing pseudocode, not a working bit of code. The Sun documentation contains some examples, and one might even want to use the Cray-oriented POINTER notation.... As originally stated, the exact "spelling" of the "memory allocation" routine and how one calls it is system (machine+os) specific; and is of course non-standard. However, only a few lines of code in the main program are affected and the rest of ones program may be completely standard conforming. Dynamic memory allocation is not only for the fearless, nor does it seriously contort ones code (unless you write very short applications). -- ---------------------------------------------------------------- Keith H. Bierman kbierman@Eng.Sun.COM | khb@chiba.Eng.Sun.COM SMI 2550 Garcia 12-33 | (415 336 2648) Mountain View, CA 94043