You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a global boolean flag to the kernel, say StrictMode, which defaults to 0 / false.
add a command line option --strict which changes the default to 1 / true (can be added in src/system.c next to the other command line options)
then look at the code in the two pull requests referenced above; try to adapt their patches so that their warnings are only printed if StrictMode is 1 / true.
think about other things it could do, and/or ask about
also consider exposing the state of the mode to the GAP language level somehow (say by setting a global variable)
Activity
fingolfin commentedon Jul 14, 2017
So to elaborate a bit, here is what I'd do:
StrictMode, which defaults to 0 / false.--strictwhich changes the default to 1 / true (can be added insrc/system.cnext to the other command line options)StrictModeis 1 / true.fingolfin commentedon Dec 20, 2024
I also have code that prints a warning when a function contains an unused local.
wilfwilson commentedon Aug 27, 2025
This sounds nice.