[Changeset] Re: namelengthmax?

John W. Eaton jwe at bevo.che.wisc.edu
Mon Mar 24 14:54:32 CDT 2008


On 23-Mar-2008, David Bateman wrote:

| Bill Denney wrote:
| > David Bateman wrote:
| >> Since we're picking off the easy functions to implement that are matlab
| >> core functions and not implemented in Octave, I looked at namelengthmax.
| >> In matlab this is 63 which is basically limited by the string name
| >> reserved for the variable name in matlab's "save" file format. However,
| >> the same limits don't apply in Octave and the variable name length limit
| >> is essentially "2^31-1". However when Octave writes to a mat-file it
| >> truncates the variable names to 63 character (or 31 characters for v5
| >> files).
| >>
| >> So if we implement namelengthmax should we return 63, or 2^31-1? Is this
| >> function of any use in any case?
| >>   
| > My personal thoughts are that since we go for Matlab compatibility in
| > almost all things and since it is not really useful for octave, we
| > should have the function and it should have a warning similar to what
| > you discuss above and then it should return 63.
| 
| 
| Yeah that's what I thought.. See the attached patch..

I applied this changeset.

Thanks,

jwe


More information about the Octave-maintainers mailing list