[bug #50010] Index error message "error: a(5): out of bound 1", et al. have bracket type match

Rik <[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 #7, bug #50010 (group octave):

I still the idea of giving a clue to the programmer about the type of the
variable.  Slightly different example,

str = ""
str = 


This makes it very hard to tell that *str* is empty, and of type char_matrix.

@jwe did have a patch for this once upon a time.  I just tried the *diff* file
from 2017, and, unsurprisingly, it does not apply correctly.

As long as this code is outside of a high performance block then I think it is
okay to introduce some overhead to figure out what the indexing character
was.

In jwe's implementation it was using try/catch blocks which should be very
fast in C++.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?50010>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaZWqSQAKCRCqLAuaBUf3
TnQZAQD6g9vJDYAu2OTTfPmcboFAcbE5gXk0Jj88VR53W0MlKwD/Qo9Pi/4eA43g
W+0Irb5f4dc4Q2inNC3ZGoTKOvF8yws=
=Q8q5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.