#unique on
enum
x = 1
y
end enum
If you use enum without an identifier, and the #unique on directive, the reported error message is that "sys" is already defined.
Without #unique on, it says that "x" is not defined.
Also, why enum requires an identifier if later isn't used for anything?
I can't do
enum x
a = 10
b
c
end enum
enum x2
a = 1
b
c
end enum
print x.a
They should work like namespaces if an identifier, e.g. "explicit", is specified, e.g.
enum x explicit
a = 10
b
c
end enum
enum x2 explicit
a = 1
b
c
end enum
print x.a
print x2.a
Currently, they're working as if I was using an anonymous enum.