top of page
Search
  • Writer's pictureMasihini Team

Scope of a Variable


In Masihini Lang there are two basic scopes for a varible:

  • Global: a [static] or global variable may be open to be accessed by all functions, this is specially useful when it is necessary to store of modify values thought the execution of the program.

  • Local: a local variable may be understood as a parameter inside the signature of a function of the variables declared inside the local declaration block of each function. It is important to notice that after each function has completed its instructions, the values stored inside these variables will be deleted.


2 views0 comments

Comments


bottom of page