User Tools

Site Tools


script:walkthrough:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
script:walkthrough:functions [2019-11-25 08:41]
skyjake
script:walkthrough:functions [2019-11-25 08:41] (current)
skyjake [Defining into a record]
Line 92: Line 92:
   end   end
  
-The //func7// is not visible outside //func6//, just like any other local variable. However, one could return //func7// out of //func6// and then it could be used just like a regular top-level function.+//func7// is not visible outside //func6//, just like any other local variable. However, one could return //func7// out of //func6// and then it could be used just like a regular top-level function.
  
 Functions defined inside another function do not have visibility to variables in the outer function. Instead, each function has its own local namespace and may access the module'​s global namespace. Functions defined inside another function do not have visibility to variables in the outer function. Instead, each function has its own local namespace and may access the module'​s global namespace.
script/walkthrough/functions.txt ยท Last modified: 2019-11-25 08:41 by skyjake