You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So nimterop needs to check if an identifier is already defined, and proceed adding its definition only if that identifier doesn't already exist. Is that possible?
The text was updated successfully, but these errors were encountered:
kaushalmodi
changed the title
Possible to override the definitions created by nimterop? [feature request]
Possible to override the definitions created by nimterop? [low priority feature request]
Jan 21, 2019
There's no way to find out what's declared already to tell toast to skip those identifiers. But it may be possible to get the AST of the generated code and skip adding things that are already system.defined().
Needs some AST magic but just might be possible. Worthwhile cause nimterop fixes may introduce a symbol that was previous skipped, breaking a wrapper author's workarounds.
Hello,
This feature request is a spin-off off #50.
I was wondering if something like this can be made to work:
The idea is that
cImport
skips definingsvOpenArrayHandle
,svGetArrElemPtr
, etc. which already got defined beforecImport
got called.Without that, right now I get the below expected error:
So
nimterop
needs to check if an identifier is already defined, and proceed adding its definition only if that identifier doesn't already exist. Is that possible?The text was updated successfully, but these errors were encountered: