[Changeset] Re: namelengthmax?
David Bateman
adb014 at gmail.com
Sun Mar 23 17:35:54 CDT 2008
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..
> Have a good day,
>
> Bill
>
> P.S. You're welcome to implement the hard ones, I was just going for
> the easy ones. :)
Hey the easy ones are faster to implement, and you can't get much easier
than
function n = namelengthmax ()
n = 63;
endfunction
There are still over 400 missing functions, so I'm sure we can't find
some other easy ones :-)
D.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch7796
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080323/3dac57ca/attachment.ksh
More information about the Octave-maintainers
mailing list