-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19281 from lydia-duncan/mpzStruct
Adjustments to the visibility of bigint's implementation details [reviewed by @bmcdonald3] Stops documenting the `mpz` field for the `bigint` type in the BigInteger module, and deprecates the `mpzStruct` method in favor of a new method called `getImpl`, which is documented as an implementation detail that may change in the future. Resolves #17694 Updates some uses of the now deprecated method to use the new method instead. Updates some documentation links to the `mpz` field to not be links any more - the field still exists, so it's okay for users to refer to it though it may become private later when private fields are implemented. Adds a new test locking in the deprecation message for `mpzStruct`. Passed a full paratest with futures
- Loading branch information
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use BigInteger; | ||
use GMP; | ||
|
||
config const debug = false; | ||
|
||
var a: bigint = 14; | ||
var impl = a.mpzStruct(); | ||
var ret = chpl_gmp_mpz_nlimbs((impl,)); | ||
if debug then writeln(ret); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deprecateMpzStruct.chpl:7: warning: mpzStruct is deprecated, please use getImpl instead |