User Tools

Site Tools


script:walkthrough:scopes

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:scopes [2019-11-25 08:57]
skyjake [Scopes]
script:walkthrough:scopes [2019-11-25 10:55] (current)
skyjake [Importing modules]
Line 50: Line 50:
   import record other   import record other
  
-This imports //other//, makes an owned copy of the record, and assigns it to a local variable named //other//. It is equivalent to the following:+This imports //​other// ​(from a file called **other.ds** somewhere on the import path), makes an owned copy of the record, and assigns it to a local variable named //other//. It is equivalent to the following:
  
   import other   import other
   other = Record(other)   other = Record(other)
  
script/walkthrough/scopes.txt ยท Last modified: 2019-11-25 10:55 by skyjake