Setting pointer value to another pointer

BlitzMax Forums/BlitzMax Programming/Setting pointer value to another pointer

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

No setting them to point at the same thing, but setting the memory located at one pointer to be a pointer to other memory:

Global Pointers:Int Ptr=MemAlloc(1024*4)
Pointers[0]=Int(MemAlloc(1024))
[ERROR]: Compile Error:Unable to convert from 'Byte Ptr' to 'Int Ptr'
On the second line. However, I'm not trying to do this. I'm attempting to set an int to an int...

[EDIT] BTW, yes, I am crazy for doing this. After my second attempt at string split functionality I've gone all out as far as speed goes. Its gonna have a custom memory system, alloced when needed, minimum of 1K, max 1 mb, used instead of arrays inside the split function, so the arrays dont have to be alloced/dealloced every call and there isn't a limit on the size of the input text or split elements. I think this is the best way. If I cannot do this, banks or arrays will do fine instead for the main pointer list.