-
Notifications
You must be signed in to change notification settings - Fork 162
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
Deprecate undocumented extra arguments for DeclareGlobalFunction
and InstallGlobalFunction
#3694
Conversation
The extra argument was never documented for `InstallGlobalFunction`. In contrast, for `DeclareGlobalFunction`, the documentation for a long time claimed that it required exactly (!) two arguments, although all examples only showed one argument, and the documentation never said what the other argument was supposed to do. Various people then made differing guesses as to the supposed meaning of the extra arguments: some put in an info string; some put in a list of input filters; some just a single filter. This PR removes several of these from the GAP library itself. Various packages still use these extra arguments, and loading them will trigger the warnings. Some already fixed it in their repositories and just need to make releases. When the time comes for releasing GAP 4.12, we can see if all packages are adapted, and then depending on that either turn the warning into an error; or conversely, increase the warning level to 2, to hide it from regular users who might be confused by the message.
aa6cc30
to
748c74b
Compare
@fingolfin for most packages this should only break their tests, but there is a case when it broke the bugfix test for the core GAP system when GAP is loaded with |
? Fixing that requires no crisp release, just some trivial modifications to that tst file to tweak info levels |
After gap-system#3694, a warning `DeclareGlobalFunction: too many arguments` is shown when Crisp is loaded.
Submitted #3726 to silence the warning in the bugfix test. |
After gap-system#3694, a warning `DeclareGlobalFunction: too many arguments` is shown when Crisp is loaded.
After #3694, a warning `DeclareGlobalFunction: too many arguments` is shown when Crisp is loaded.
DeclareGlobalFunction
and InstallGlobalFunction
The extra argument was never documented for
InstallGlobalFunction
. Incontrast, for
DeclareGlobalFunction
, the documentation for a long timeclaimed that it required exactly (!) two arguments, although all
examples only showed one argument, and the documentation never said what
the other argument was supposed to do. Various people then made
differing guesses as to the supposed meaning of the extra arguments:
some put in an info string; some put in a list of input filters; some
just a single filter. This PR removes several of these from the GAP
library itself.
Various packages still use these extra arguments, and loading them will
trigger the warnings. Some already fixed it in their repositories and
just need to make releases. When the time comes for releasing GAP 4.12,
we can see if all packages are adapted, and then depending on that
either turn the warning into an error; or conversely, increase the
warning level to 2, to hide it from regular users who might be confused
by the message.