🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #93

Re: Dynamic arrays in Modula-2?

#93
From: Changhao Boh
Date: Fri, 10 Apr 1992 11:06
16 lines
1037 bytes
DM> Sorry, I tried to say in the second paragraph above that the dimension
DM> of the array are not known at compile time.  I assume (for now) that
DM> the number of dimensions is known.  I guess I should have said
DM> "dynamic declaration" instead of "dynamic allocation."

Well, the answer is still user defined data structures.  Use an opague datatype
to simulate a multidimentional array.  If you are looking for Quick BASIC's
REDIM, I don't thing you'll find it in Modula 2.  Afterall, isn't that why we
all have to go thru the data structure course ? To learn about the wonderful
world of dynamic datatypes.

Yup, you cannot get away from POINTERs.

Good Health.

Changhao
Technical Details
Message-ID: <11361@mindlink.bc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!agate!rsoft!mindlink!a2660

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!agate!rsoft!mindlink!a2660
From: Changhao_Boh@mindlink.bc.ca (Changhao Boh)
Newsgroups: comp.lang.modula2
Subject: Re: Dynamic arrays in Modula-2?
Message-ID: <11361@mindlink.bc.ca>
Date: 10 Apr 92 11:06:04 GMT
Organization: MIND LINK! - British Columbia, Canada
Distribution: world
Lines: 16