If you want to allow multiple `moduleA as a, moduleB as b, ..` then I think you need a tiny macro, for example: import macros macro imp*(imports: varargs[untyped]): untyped = result = newStmtList() for i in imports: result.add quote do: from `i` import nil imp strutils as su, parseutils as pu Run
- Exploring namespaces support in Nim kcvinu
- Exploring namespaces support in Nim Arrrrrx2
- Exploring namespaces support in Nim cblake