Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger lists immediate array dimension last #606

Closed
processing-bot opened this issue Nov 25, 2022 · 0 comments
Closed

Debugger lists immediate array dimension last #606

processing-bot opened this issue Nov 25, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@processing-bot
Copy link
Collaborator

Created by: jcmckeown

void setup(){
  int [][] testArray = new int[3][4];
  println(testArray.length); // set a breakpoint here, if you like
  println(testArray[0].length);
}

Debugger lists immediate array dimension last

when stepping through the above code, the type of testArray is reported by the debugger as int[][3], which is easily understood, but a bit confusing.

Expected Behavior

Since this seems to be the java way of declaring arrays-of-arrays, it would seem more consistent to keep the declared order of dimensions, and call testArray an int[3][], EVEN IF it's an array of int[] pointers.

Your Environment

  • Processing version: 3.4 and 4.0.1
  • Operating System and OS version: Linux xyzxyz 6.0.8-arch1-1 ♯1 SMP PREEMPT_DYNAMIC Thu, 10 Nov 2022 21:14:24 +0000 x86_64 GNU/Linux
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant