[bug #68237] "load" emits long series of "classdef not found" warnings when loading classdef arrays w/o definition
Rik <[email protected]> Fri, 17 Apr 2026 07:35:06 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #22, bug #68237 (group octave):
Responding to various questions
1) Use this pattern to find a warning ID, if it exists.
lastwarn ('', ''); # Clear last warning and warning ID
CODE
[MSG, MSGID] = lastwarn ()
Note, *CODE* may need to be just the single line that produces the warning.
In Philip's case, there are other lines of code that are apparently generating
warnings so calling the function is not specific enough.
2) New warnings should be placed in the file *scripts/help/warning_ids.m*.
Keep the warnings alphabetized.
3) The call *octave_quit()* does a single check to see if there is a keystroke
Ctrl+C in the input buffer. For performance reasons it should not be placed
in the innermost part of a for loop. In this case, checking once per
"variable" (which might be a struct element) seems good enough.
4) We try to keep line lengths to 80 characters
+ std::unordered_set<std::string> m_missing_classes; // Cache missing
classes to minimize lookup time
This line can be re-written to place the comment first.
+ // Cache missing classes to minimize lookup time
+ std::unordered_set<std::string> m_missing_classes;
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68237>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaeIa6gAKCRCqLAuaBUf3 Tv6BAP4uPn951ZZxepIRyg1ramWab1Wh0hmP10x6m9O1hLt46gEAtbkDvXEXFmfX PAIMQwsGmoiH8KJ5GbdEH7LbDpKTJAQ= =bNov -----END PGP SIGNATURE-----