BYREF

BYREF

Sub/func argument declaration. Changes to the variable will be passed back to the caller. Equivalent syntax to the @ character.

Example

sub Increment(BYREF i)
  i = i + 1
end

x = 1
Increment(x)
print x         ' output: 2
Language
If there is insufficient information on this page and you wish learn more about BYREF, please send an email to smallbasic@gmail.com. You can help to improve information about BYREF by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.