passing a filehandle to a function

Blitz3D Forums/Blitz3D Beginners Area/passing a filehandle to a 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.

In Blitz, handles are always integers. (There are only a few built-in types in Blitz anyway.)

Also, whenever a variable (or return type) is declared without specifically referencing the type, it is assumed by Blitz to be an integer. In other words, these examples are all the same:
Function draw(img)
    DrawImage img,0,0
End Function

Function draw%(img%)
    DrawImage img,0,0
End Function

Function draw%(img)
    DrawImage img%,0,0
End Function

Function draw(img)
    DrawImage img%,0,0
End Function

...etc