clever-lang/clever — Issue #152: Issues on aliasing
Author: muriloadriano
Created: 2012-03-05 15:10:32+00:00
State: open
Labels: Bug, Compiler, Feature Request, Interpreter

Our current aliasing approach isn't so helpful. For example:

```
import std.io as io;
println("error");
```

This code works. So why to use alias if we cannot prevent name clashing?
Other example:

```
// graph.clh
use Graph as Array>;
...

// main.clv
import 'graph.clh' as graph;

graph::Graph g;
````

Results in:

```
Compile error: `graph::Graph' does not name a type on main.clv line 3
```

Which means that the aliasing weren't propagated.

We need to improve this feature. In my view there is no utility for aliasing as it is currently.