Hey everybody :)
In school we have recently been learning about abstract datatypes and sorting-algorithms, as well as problem-trees and other stuff. We did this in python. I noticed how lovely it is to work with pointers, is there a ways to work with pointers in blitzmax. I have investigated the Ptr but it seems you always have to deciede what type it is anyways, like for example:
Local x:int Ptr
So with that said, whats the difference? Since blitzmax normal variables are "references" to its objects, i cant really see the difference. (as i understand, the only difference is that the garbagecollector doesnt take care of leftovers automaticly)
Is there a ways to just specify a pointer, and let it point to whatever you want ?
In school we have recently been learning about abstract datatypes and sorting-algorithms, as well as problem-trees and other stuff. We did this in python. I noticed how lovely it is to work with pointers, is there a ways to work with pointers in blitzmax. I have investigated the Ptr but it seems you always have to deciede what type it is anyways, like for example:
Local x:int Ptr
So with that said, whats the difference? Since blitzmax normal variables are "references" to its objects, i cant really see the difference. (as i understand, the only difference is that the garbagecollector doesnt take care of leftovers automaticly)
Is there a ways to just specify a pointer, and let it point to whatever you want ?