return types

BlitzMax Forums/BlitzMax Beginners Area/return types

Rambo_Bill(Posted 2005) [#1]
How do you know what type of variable something returns.
Take Millisecs() for instance. MilliSecs returns the number of milliseconds elapsed since the application was started. How do you know if it is an Int or any other data type?


Scott Shaver(Posted 2005) [#2]
if it isn't specified then I think it defaults to integer otherwise you see a return type like

function foo:Float()

function bar:String()


Rambo_Bill(Posted 2005) [#3]
I think your right, I looked up peekint and it specifies no return type. So no return type must mean either no return or an int most likely.