I know arrays are pointers, so that if you say something like:
DIM ARRAY1[1] DIM ARRAY2[1] ARRAY2 = ARRAY1 ARRAY2[0]=5 PRINT ARRAY1[0]Most newbies might think you'd get "0" as an output, but you get 5. Because, at least as I understand it, arrays are pointers, so when you assign one array to another, it just makes them store the same pointer address rather than copying the actual values, so editing one affects both. This is the same as it is in Java, however, in Java, you can compare to arrays using "ARRAY1==ARRAY2" and it will return true if they are pointing to the same address. There are quite a few times you can make use of this. However, in SmileBASIC, when I call "ARRAY1==ARRAY2", I simply get a "Type mismatch" error. I'm wondering if there's a way to check if two arrays are pointing to the same address. I don't want to see if they are holding the same values, but if they are pointing to the same address. Is there a way I can do this in SmileBASIC?