clever-lang/clever — Issue #40: Cannot create multiple functions with the same name
Author: rgsilva
Created: 2011-12-31 18:53:44+00:00
State: open

I cannot created two or more functions with the same name. For example:

```
addFunction(new Function("log", &CLEVER_NS_FNAME(math, logb), double_type))
->addArg("value", double_type)
->addArg("base", double_type);

addFunction(new Function("log", &CLEVER_NS_FNAME(math, loge), double_type))
->addArg("value", double_type);
```

The result is this:

```
ricardo@pios:~/Development/Github/clever-rgsilva$ ./clever -r 'import std; println(log(100.0));'
Compile error: Function `log' expects 2 arguments, 1 supplied on line 1
```

The expected result is to call ```log(double)```, not ```log(double, double)```.