return type from function

Blitz3D Forums/Blitz3D Beginners Area/return type from function

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've just been avoiding creating things in functions, for no other reason than not being sure what happens (to the local object(s)) when you return either an entity or type. I guess there's no such thing as a local type instance and, when returning entities, you pass back the reference to the object's location and can free it by referring to whatever you called the function with (ie mySkyBox.skyBox=createSkyBox()).

I'm just being daft and worrying about nothing, but hoping somebody else would say "you're just being daft and worrying about nothing". :D