next up previous contents
Next: Interface declarations in the Up: Type declarations in the Previous: discriminated unions

multi-dimensional arrays

Multi-dimensional arrays or pointer arrays can be used in powerRPC, however, only the size of the first dimension can be a variable. To use multi-dimensional arrays with variable sizes at second dimension and above, you can use typedefs.

For example, we can use the str1024 to define a array of strings.

      struct string_array 
      {
             int len;
             str1024 [size=len] strArray;
      };



Copyright (C) Netbula LLC, 1996