octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: namelengthmax?


From: Bill Denney
Subject: Re: namelengthmax?
Date: Sat, 22 Mar 2008 10:44:12 -0400
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

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.

Have a good day,

Bill

P.S. You're welcome to implement the hard ones, I was just going for the easy ones. :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]