Multidimensional Anonymous Arrays (Language Help)

by Steve K, Saturday, February 25, 2012, 10:34 (1855 days ago)

Hi guys, I'm just starting out with BASIC256 and I'm hoping to teach it to a class of children soon. It's looking quite good so far but I've hit a small problem: is there any way to initialise a multidimensional array? Something like:

grid = { { 1, 2, 3, 1, 1 },
{ 2, 0, 2, 1, 0 },
{ 0, 1, 1, 2, 3 },
{ 3, 2, 1, 0, 0 },
{ 0, 1, 2, 0, 3 } }

I could possibly use one big one-dimensional array instead, or load the data from a file, but these are complications I was hoping to avoid at the moment.

Anyway, thanks for making this neat little language :)


Complete thread:

 RSS Feed of thread

powered by my little forum