Article View: comp.lang.modula2
Article #88Dynamic arrays in Modula-2?
From: David M. Brumley
Date: Thu, 09 Apr 1992 22:57
Date: Thu, 09 Apr 1992 22:57
12 lines
968 bytes
968 bytes
How does one express dynamic allocation of single and multi-dimensional arrays in Modula-2? How does one pass a dynamically allocated multi-dimensional array as an argument to a procedure? For example, if a two or three dimensional array of INTEGERs resides in a file on disk, and the dimensions of the data set are specified at the beginning of the file, how can the file be loaded and manipulated using a Modula-2 program? My references on Modula-2 lead me to believe that this elementary operation is difficult or impossible to solve elegantly or portably in Modula-2.
Technical Details
Message-ID:
<DMB.92Apr9165746@srl03.usl.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!tulane!rouge!rouge!dmbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!tulane!rouge!rouge!dmb From: dmb@srl03.usl.edu (David M. Brumley) Newsgroups: comp.lang.modula2 Subject: Dynamic arrays in Modula-2? Message-ID: <DMB.92Apr9165746@srl03.usl.edu> Date: 9 Apr 92 22:57:46 GMT Article-I.D.: srl03.DMB.92Apr9165746 Sender: anon@usl.edu (Anonymous NNTP Posting) Organization: University of Louisiana Lines: 12