Import

Module Namespace

Import console.zed including all classes and functions into the module namespace:

import console

print 'Hello World'

Import console.zed into the module namespace under tty:

import console as tty

in tty print 'Hello World'

Classes are accessible as tty.classname.

Imports into modules are not accessible from other modules.

Global Namespace

Same as module prior, but imports to the global namespace instead:

import console to *
import console to *tty

Imports into the global namespace are accessible from any module.