nimpy
nimpy copied to clipboard
Support for more than one argument type
import nimpy
proc foo(a: int|string) {.exportpy.} =
when type(a) is int:
echo "Got int"
elif type(a) is string:
echo "Got string"
foo(100)
foo("Hello")
Fails currently with invalid type: 'void' for var