[Top][All Lists]

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

Re: is_scalar conflicts with isstring

From: John W. Eaton
Subject: Re: is_scalar conflicts with isstring
Date: Fri, 9 Mar 2001 09:56:28 -0600

On  9-Mar-2001, SZABO Sandor <address@hidden> wrote:

| >> isnumeric("a")
| ans = 1
| >>
| I use 2.0.16.

In the 2.1.x version of Octave, isnumeric ("a") returns false if the
value of implicit_str_to_num_ok is false.  Otherwise, it returns true,
because it is possible for the implicit conversion to allow "a" to act
as a numeric value.

FWIW, I don't think the built-in variables like implicit_str_to_num_ok
were a very good idea.  It would be better to simply not allow the
implicit conversion at all.  But then I'm sure a lot of people would
complain about how that is not compatible with Matlab.  :-/

BTW, readers of this list might be interested in the following link:

It includes more discussion about other undesireable language features
as well as some Octave history and a few thoughts about the future.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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