-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conflict between stew.init and blsCurve.init #9
Comments
just to check, this is not an ambiguity between the |
The error message is not that confusing to me, but the question is why Nim selected the overload from Are you sure both modules were imported in the context where |
@arnetheduck no, it's in master branch @zah For now I can workaround with blscurve.init. By the way, which of our libraries rely on those stew/inits? |
Nim counts the number of I'm trying to use these overloads whereever they are applicable because they have been proposed for inclusion in the standard library. Our codebase should serve as a proof that they are reasonable. |
well, what's not nice about them (as we saw in the bls case) is that they still are not force-called like a constructor - so it's much better to design types that don't need them rather than using |
It seems like the
init
scheme here is a too general (with auto) and causes issue with bls curve init from status-im/nim-blscurve#26nim-stew/stew/objects.nim
Lines 1 to 15 in 5f1dc75
The error thrown is especially hard to debug
corresponding to this line:
The text was updated successfully, but these errors were encountered: