Simkin Scope


In Simkin, identifiers identify the following types of things:

  1. local variables - these are visible only within the current function
  2. instance variables - these belong to the current object
  3. global variables - these are visible to any script

If an identifier begins with a @, then the value of the variable whose name follows is used as the identifier's value.

For example:

myvar="Name"; 
trace(@myvar);		// this will produce the contents of the variable Name

mymethod="Show"; 
@mymethod();		// calls the method Show