View Single Post
  #6  
Old 04-25-2005, 09:39 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by Velox Cruentus
Not quite sure -- I had that problem some... Perhaps a month ago? I don't know. It only returned the first array dimension.
In Graal, a multidimensional array is essentially just an array of arrays. If you try to apply size() to it then you'll just get the length of that first array. If you want to get the total number of elements, and you're sure that every component array is the same width, you can just do: array.size() * array[0].size().

Personally, I'd just keep track of those things with variables.
__________________
Reply With Quote