help with lots of code

BlitzMax Forums/BlitzMax Programming/help with lots of code

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.

If bmax could autocast from int/byte/etc to int ptr/byte ptr/etc it would be great.

Something like..
function GetPtr:byte ptr(converted:byte ptr)
	return converted
end function

myint:int = 123456789
mybyte:byte = 123
mystring:string = "helloworld"

notify "myint: "+int(GetPtr(myint))
notify "mybyte: "+int(GetPtr(mybyte))
notify "mystring: "+int(GetPtr(mystring))


... I imagine would come in handy for your problem.