Skip to content

Conversation

@minad
Copy link
Member

@minad minad commented May 17, 2019

mp_word is an internal type and it is problematic if it is exposed
in the public api. See for example #216 - MSVC does not support 128 bit
mp_words. But it is perfectly ok to use those internally in the library,
as long as the library is compiled with GCC.

Ping @nijtmans - does it make sense to hide the mp_word type from the public api in general?

@minad minad force-pushed the private_mp_word branch 2 times, most recently from 950963e to bdd5228 Compare May 18, 2019 09:10
@minad minad force-pushed the private_mp_word branch from bdd5228 to 2afc11c Compare May 18, 2019 09:57
@minad minad requested review from nijtmans and sjaeckel May 18, 2019 21:32
@minad
Copy link
Member Author

minad commented May 18, 2019

@sjaeckel What do we have to check here? Do you see any downsides of this?

Copy link
Collaborator

@nijtmans nijtmans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it makes sense to make mp_word private. There is a chance that user code uses it for their own internal purposes, I don't know any such examples (Tcl doesn't do this!). This PR makes mp_word deprecated, that rules out any real risk. I agree with this change!

I'll have to rebase #216, but I have to do that anyway. I will wait for this one to be merged first.

Thanks!

mp_word is an internal type and it is problematic if it is exposed
in the public api. See for example #216 - MSVC does not support 128 bit
mp_words. But it is perfectly ok to use those internally in the library,
as long as the library is compiled with GCC.
@sjaeckel sjaeckel merged commit 96b5552 into develop May 21, 2019
@sjaeckel sjaeckel deleted the private_mp_word branch May 21, 2019 14:01
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

Successfully merging this pull request may close these issues.

4 participants