Return value from Var must be matching type

BlitzMax Forums/BlitzMax Beginners Area/Return value from Var must be matching 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.

"SSwift, and you don't want to write a simple function out of principle?"

I know I can do that. I just think it's dumb I should have to. I'm not going to bother making a wrapper funciton like that though, that's overkill. I'm just gonna make some temporary local vars in the function I need to get the values in I guess.

But I guess you could say yes, it's the principle of the thing.

What would be really great is if they'd fix var so that you can cast the return value to different types. It's absurd that you can't stick an int into a float.