Can max_array_length be enlarged?

From: Dennis (Gang) Chen (Dennis.G.Chen@motorola.com)
Date: Mon May 22 2000 - 03:00:25 MET DST

  • Next message: David Chemouil: "communication problems"

    Hi,

    In ocaml, the max length of array is determined by the predefined constant
    max_array_length. Is it possible to build an array with length
    longer than this? I noticed that this constant is defined in source code sys.ml by:

    let max_array_length = (1 lsl (word_size - 10)) - 1;;

    Is it safe to modify this code to set a bigger value for max_array_length?

    Thank you in advance for any help on this point.

    --
    Dennis Gang CHEN    Senior Software Engineer
    Motorola Australia Software Centre, Electronic Design Automation
    2 Second Avenue, Mawson Lakes, SA 5095, Australia
    phone: +61 8 8203 3560,  mailto: Dennis.G.Chen@motorola.com
    



    This archive was generated by hypermail 2b29 : Mon May 22 2000 - 18:15:40 MET DST