create a new unknown type?

BlitzMax Forums/BlitzMax Programming/create a new unknown type?

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.

i have a funcion that accepts a type object but it doesnt know what kind.....
function make_another(mytype:object)

end function



how do i make a new type instance of the same type as the incoming object?