Stages 87-88 passing parameters

Follow the development of the SharpBASIC compiler and share your thoughts and ideas.
Locked
User avatar
frank
Site Admin
Posts: 40
Joined: Sun Nov 21, 2021 12:04 pm
Location: Netherlands
Contact:

Stages 87-88 passing parameters

Post 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
Last edited by frank on Mon Jan 31, 2022 2:42 pm, edited 1 time in total.
Keep it simple!
Locked