When you import types from C often you get name collision because of the
reserved Nim keywords.
typedef struct
{
int type;
int another;
}AType;
Run
Then when you want to import it to Nim
type
AType {.importc: "AType", header: "somewhere.h".} = object
type: cint
another: cint
...
var t: AType
t.type = 1
t.another = 2
Run
Then the Nim complains about invalid use of the type keyword. Is there a way
around this? Having "type" as a member in a C struct must be quite common.
