Can I store a list of method callback pointers?

BlitzMax Forums/BlitzMax Programming/Can I store a list of method callback pointers?

@Dreamore: Good point. In fact, I completely overlooked this and I actually DO want *METHOD* pointers and not function pointers. In my testing I was using function pointers which is why it worked.

Is there any way to store method pointers? If I understand correctly they are actually two pointers (one pointer to the object and another to the method). A normal function pointer is simply one pointer.

Another question...

Can I store function pointers (and/or method pointers) in anything besides an array? (eg. TList, TMap, etc...)

Also, I'm a bit confused on multi-dimensional arrays in BlitzMax.

If I declare my array like this:
Local Arr : Int[800, 600]


Wouldn't Arr[799, 599] be the last element? I'm confused because BlitzMax allows you do this:

  Arr[1000, 1000] = "Hello"


...without throwing an error!

Finally... (last question!) Can you resize multi-dimensional arrays? Is this slow to do? (does it copy the entire array while copying it?)

Thanks again for all of your help!!