#505 Array~Dimension(1) Returns wrong value

v4.0
closed
Classes (182)
5
2012-08-14
2008-03-28
Martin Berg
No

REXX-ooRexx_3.2.0(MT) 6.02 30 Oct 2007 on Windows

If an array is initialized with .Array~New(0) the dimension method returns always 0
Example:
a = .array~New(0)
A[1] = ' '
A[2] = "Mike"
A~Append("Rick")
say a~dimension(1) -- Shows: 0 , correct would be 3

The Problem does not occur if array is defined without the 0 .array~New().

Martin Berg, IBM, mberg@de.ibm.com

Discussion

  • dominic wise

    dominic wise - 2008-05-25

    Logged In: YES
    user_id=1382455
    Originator: NO

    Also observed on Ubuntu 8.04

    Incidentally, I have written a patch for this this but I can't see how to get onto any of the mailing lists in order to find out how to go about submitting it. Can anyone help ?

     
  • dominic wise

    dominic wise - 2008-05-25

    Logged In: YES
    user_id=1382455
    Originator: NO

    Re. earlier comment concerning submission of a patch - I've now found out how to contact the project admins. Apologies for spamming this bug report

     
  • dominic wise

    dominic wise - 2008-05-27

    Logged In: YES
    user_id=1382455
    Originator: NO

    Patch submitted - 1975132

     
  • Rick McGuire

    Rick McGuire - 2008-07-12

    Logged In: YES
    user_id=1125291
    Originator: NO

    Patch provided by domwise. Thanks dom!

     
  • Rick McGuire

    Rick McGuire - 2008-07-16

    Logged In: YES
    user_id=1125291
    Originator: NO

    Patch provided by domwise. Thanks dom!

     


Anonymous

Cancel  Add attachments