flowgrammable / steve-legacy

The Steve programming language
Apache License 2.0
4 stars 0 forks source link

Add an alias declaration. #14

Closed asutton closed 9 years ago

asutton commented 9 years ago

Aliases complement the module system.

asutton commented 9 years ago

Added a using declaration that allows names to be imported from a module into the current scope. For example:

import std.net.ofp;
using std.net.ofp.uint;

def x : uint(8) = 3; // Ok