allyn@sdcsvax.UUCP (03/23/84)
It is extremely dirty to use variably dimensioned arrays AT ALL in Pascal. The only way I know of is to declare a pointer to your array type declared like this: array[0..0] of whatever; If you turn rangechecking off (*$R-*) then you can access all the memory you want. In this case, you should then pass the pointer and the dimension to the unit procedure. Be careful of stack overflows. You may declare variables, procedures, and functions local to the implementation section of a unit. I believe that variables must be of the *exact same* type to be equivalent. If you need more help, mail me. -- From the virtual mind of Allyn Fratkin UCSD Pascal Project U.C. San Diego