🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.mod2
Article #560

Re: Open Array Parameters and matrices

#560
From: Comfy chair
Date: Mon, 13 Oct 1986 18:16
17 lines
1182 bytes
I believe DEC's Modula-2 compiler has an extension to allow open
matrices and higher order arrays.

You could bypass the type checking by passing the address of the
array.  You'd still have to do your own indexing. This means passing
the dimensions as well.  Messy.

Perhaps a neater way is to pass a descriptor (a record containing the
address of the array, and the dimensions). I still don't see a way
around either the inefficiency of an indexing function, or the
verbosity of writing your own index computations.

Note that C (until C++) has the same problems.

Anybody have better ideas?

	Ken
Technical Details
Message-ID: <8610131710.21121@ur-seneca.arpa>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!rutgers!nike!ucbcad!ucbvax!ROCHESTER.ARPA!ken
References: <548@sdcc7.ucsd.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!rutgers!nike!ucbcad!ucbvax!ROCHESTER.ARPA!ken
From: ken@ROCHESTER.ARPA (Comfy chair)
Newsgroups: net.lang.mod2
Subject: Re: Open Array Parameters and matrices
Message-ID: <8610131710.21121@ur-seneca.arpa>
Date: Mon, 13-Oct-86 14:16:36 EDT
Article-I.D.: ur-senec.8610131710.21121
Posted: Mon Oct 13 14:16:36 1986
Date-Received: Tue, 14-Oct-86 06:15:42 EDT
References: <548@sdcc7.ucsd.EDU>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 17