Because call c func (cint cstring cfloat ...) must convert variant type very cumbersome. Have to write many nim templates/func yourself everytime to reduce the trouble, Relatively find yourself writing these templates is the trouble Think maybe add pragma let us easier to use c functions
proc cfun(a: cint, b: cstring) { importc, ...} = discard
# call cfun( a.cint, b[0].cstring ) Must do this every time!! (a.int, b[0].string)!!!
# Want easy use I try def nim func, But It is troublesome if there are too many functions
template cfun(a: int, b: string) = cfun( a.cint, b[0].cstring )
#So I think maybe nim add new pragma let me can easy use them.
# Add a new pragma like pragma borrow:
proc cfunc( a: int, b:string ) {.importc "xx_fn", npc, ... } == template cfunc(...) = cfun (...)
#And c2nim can add this flag : #npc replace them too :)
Maybe I should learn how to use macros by myself, but I'm a slow learner with an IQ_Q, I should just go for it.