Path: utzoo!attcan!uunet!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!telfon.enet.dec.com!mailman From: mailman@telfon.enet.dec.com (Steven M. Mailman) Newsgroups: comp.lang.pascal Subject: Re: Can I declare an array using a var in the index? Message-ID: <15521@shlump.nac.dec.com> Date: 23 Sep 90 22:37:46 GMT Sender: newsdaemon@shlump.nac.dec.com Organization: Digital Equipment Corporation Lines: 20 >>I want to write a program which generates 2D arrays of size n x n after n has >>been input from the keyboard by the user running the program. My debugger >> In general, Classic Pascal has required that all bounds be specified at compile-time. The new Extended Pascal Standard does allow bounds to be specified at run-time. You can say TYPE matrix( size : Integer ) = ARRAY [1..size,1..size] OF REAL; VAR x : maxtrix( run-time-expression ); The only compiler that I know of that has implemented this feature from Extended Pascal is VAX Pascal version 4.0.