flowgrammable / steve-legacy

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

Implement scoped enumerations #10

Closed asutton closed 9 years ago

asutton commented 9 years ago

We want enumerators to be scoped to their enclosing enumerations. That is:

def X : typename = enum {
  A, B, C
};

def x1 : X = X::A; // OK
def x2 : X = A;    // error
asutton commented 9 years ago

Implemented in 1dbd06e22fb167c907b08d02383d3c105b920025.