Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nimpy cannot be used in generic procs #153

Closed
mratsim opened this issue May 13, 2020 · 3 comments
Closed

nimpy cannot be used in generic procs #153

mratsim opened this issue May 13, 2020 · 3 comments

Comments

@mratsim
Copy link

mratsim commented May 13, 2020

Due to limitation of the upstream semcheck and early symbol resolution, you cannot call a wrapped function in generic proc.

See https://forum.nim-lang.org/t/6321#38994

@yglukhov
Copy link
Owner

Ok, but the workaround is trivial, no? Just use nimpy.callMethod directly instead of the .() magic.

@mratsim
Copy link
Author

mratsim commented May 13, 2020

It's not in the README ;)

@yglukhov
Copy link
Owner

yglukhov commented Jul 7, 2020

I don't think this particular problem should be in the readme. It's not a nimpy issue after all. Though it could be mentioned in callMethod documentation, which doesn't exist, PRs are welcome :)

@yglukhov yglukhov closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants