[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55210] isvarname does not check length of str
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #55210] isvarname does not check length of string against Matlab namelengthmax() |
Date: |
Fri, 27 Dec 2019 16:12:14 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #1, bug #55210 (project octave):
Why should Octave's namelengthmax function return 63? It seems to me that
Matlab code that uses namelengthmax in Octave should not be limited to 63
characters just because matlab has that limit. Instead, I think we should
have namelengthmax return the real limit in Octave. Or is that a problem
because there is code that does something like
myvars = char (n, namelengthmax);
and then copies variable names into the array? If so, then I think we should
just ignore namelengthmax inside isvarname and close this report as "won't
fix".
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55210>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55210] isvarname does not check length of string against Matlab namelengthmax(),
John W. Eaton <=