-
Notifications
You must be signed in to change notification settings - Fork 161
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
Unspecified and unused optional argument req
in NewRepresentation
and DeclareRepresentation
#4409
Comments
The documentation of (I do not remember what the intended meaning of The usual way to deal with obsolete functionality (or here rather obsolete "functionality") is to keep the old stuff in By the way, also the third argument |
Ugh, I just discovered that I reported this before, as #1042... sigh. I'll leave both open for now. That issue point out that also the third argument is unused! But it is not optional. I suggest that we make it optional. In the documentation, I would mention that those arguments used to be around but were unused (so that people who compare existing code to the documentation are not confused by seeing variants with 2 / 3 / 4 arguments). Then change the GAP library to not require or mention those arguments We could also modify the code in Finally, if obsoletes are disabled (which we can detect by checking for |
This can be closed since #4519 has been merged. |
The documentation for
NewRepresentation
andDeclareRepresentation
mentions and optional fourth argumentreq
but does not specify what it does.Looking at the implementation, as far as I can tell it is simply ignored:
I looked back through our extended version history, and it was like that since the initial import of GAP4 into CVS on 1996-09-25. So maybe this is code that simply was never finished
Yet some code "uses" it:
Unfortunately it is not completely clear to me what the intention is -- how does this optional list of filters differ from the second argument
super
?Maybe
NewFamily
gives a hint, which has argumentreq
(for "required") andimp
(for "implied"), which are also both filter lists. But the first thing it then does with them is to join them together:Well, that and store
req
intofamily!.REQ_FLAGS
and use that for printing...We should figure out which code uses this unused 4th argument (e.g. by removing it, then trying to load GAP and packages, and see what breaks); and then decide how to proceed. E.g. if not much uses it, we could just remove it and "fix" all affected call sites.
The text was updated successfully, but these errors were encountered: