create a new unknown type?

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

If you don't need reflection you can use 'New mytype' and it will create a new instance even if the function doesn't know what type 'mytype' is.

function make_another(mytype:object)
  Local copyoftype:object=New mytype
end function