Pointer to custom Types
BlitzMax Forums/BlitzMax Beginners Area/Pointer to custom Types
| ||
Is there a way to have a pointer that points to a custom type? E.g.: Type MyType Field a:Int Field b:Float EndType MyVar:MyType MyTypePointer:MyType Ptr = Varptr(MyType) |
| ||
AFAIK Myvar *is* the Mytype pointer. BTW : You've posted in the Tutorial section. |
| ||
You can't, use references instead. |
| ||
Thx and sorry for posting on the wrong forum. Will not happen again (I hope ;) |
| ||
If you're trying to look at the content of the type, use the new reflection stuff, otherwise you just have a `mytype` pointer which is a handle to the object. |