Unanswered Bug of DoubleArray(params int[])

  • lunedì 28 novembre 2011 10:40
     
     

    Hi,

    I'd like to report a bug of the DoubleArray constructor.

    The two constructors behavie inconsistently when accepting size containing 0:

        public DoubleArray(params int[] sizes);
        public DoubleArray(int size0, int size1);

    For example, new DoubleArray(0,5) returns an array with size (0,5), which is good.
    While new DoubleArray(new int[] {0,5}) or new DoubleArray(0,5,3) always returns size (0,0), not good.

    I get the same result as long as there is a 0 in the size list no matter it's size0 or size1.

     


    • Modificato tuski lunedì 28 novembre 2011 10:54
    •