Page 1 of 1

Stages 87-88 passing parameters

Posted: Mon Jan 31, 2022 2:40 pm
by frank
A lot of testing is currently being done, especially with passing strings to procedures. SharpBASIC will support four different ways of explicitly passing parameters (default is implicitly by value, except string, array and struc, which are implicitly by reference):
  • ref - explicitly by reference
  • val - explicitly by value
  • const - as constant
  • cref - as constant reference