🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6151

Re: FORTRAN Lament (was:Dynamic array d

#6151
From: Erland Sommarskog
Date: Wed, 11 Jan 1989 22:03
19 lines
808 bytes
G Hush Song (gsg0384@uxa.cso.uiuc.edu) writes:
 >  var n:int
 >  put "Give size."
 >  get n
 >  var a:array 1..n of real
 >   /* Now I can use the dynamic array a[i], i = 1, ..., n. */
 >...
 >      subroutine routine(n)
 >      integer n
 >      real    a(n)
 >c  Now I can use *local* array a(i), i = 1, ..., n for CRAY II only.

Don't know really what your problem is, but both Ada and Algol
supports this.

-- 
Erland Sommarskog
ENEA Data, Stockholm              This signature is not to be quoted.
sommar@enea.se
Technical Details
Message-ID: <4236@enea.se>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!enea!sommar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!enea!sommar
From: sommar@enea.se (Erland Sommarskog)
Newsgroups: comp.lang.misc
Subject: Re: FORTRAN Lament (was:Dynamic array d
Message-ID: <4236@enea.se>
Date: 11 Jan 89 22:03:44 GMT
Organization: ENEA DATA AB, Sweden
Lines: 19