[bug #68172] any() and all() should work only on numeric or logical args
Thomas <[email protected]>
| 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 #10, bug #68172 (group octave):
Markus, your proposed temp solution would work, but I think it's a patchwork
solution over the bigger problem, which is that `all` and `any` aren't
supposed to work on non-numeric or non-logical types. I personally don't need
`any` and `all` disabled for classdef objects, I just noticed that it wasn't
supposed to work on them (because I have my list of default-defined classdef
methods that ARE supposed to work). So, I'd rather do a proper fix then apply
a quick one, especially because there's no need for a quick fix.
I agree that we can add this change, there should be NEWS entry.
I've attached a patch that (1) changes the classdef test files to use
Octave-specific syntax, (2) modifies the commit message to include the
classdef test files, and (3) adds a note in the NEWS.12.md file. I probably
didn't do the change in the NEWS file correctly, so feel free to tell me how
to edit it further.
(file #58445)
_______________________________________________________
Additional Item Attachment:
Name: bug68172_v4.patch Size: 18KiB
<https://file.savannah.gnu.org/file/bug68172_v4.patch?file_id=58445>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68172>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCac/ULQAKCRCqLAuaBUf3 TtFeAP4qG34U6DATVmLxlaZHf02stagH6D0/TArg9Fl2Mfr+BwD/R99qzxEklxCv tSY6CeVLHG0tGEELbn5Oh6uPWhZVAAw= =oVcW -----END PGP SIGNATURE-----