Brackets () arounds functions

BlitzMax Forums/BlitzMax Programming/Brackets () arounds functions

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.

there is a difference between functions and commands ( or known as methods as well ):

functions change and have a return value
methods change but don't return anything

there would be a third type of functionality: query

return but don't change anything


everything without a return has no real need for () as the () is to encapsulate input if you want to use the output straight as new "object" with .blabla