help-octave
[Top][All Lists]
Advanced

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

Re: implicit_str_to_num_ok=1


From: Joao Cardoso
Subject: Re: implicit_str_to_num_ok=1
Date: Mon, 05 Jul 1999 17:36:19 +0100

address@hidden wrote:

> Daniel Heiserer wrote:
> >
> > I try to write my code non-braindead compatible
> > IN ORDER TO POSTE IT TO THE SOURCE LIST, not for my own!

...

> The only way to write portable code that remains user-friendly is to
> ignore all defaults, save all builtins that might affect your code,
> set them to what you require, and restore them before exiting.

There is a small problem (inconsistency) with this approach related with
the `hold' command: it is not possible to store/restore its current
value. The ideal would be:

    old_hold=ishold;
    ...
    hold(old_state)

instead you have to to:

    old_hold=ishold;
    ...
    hold off
    if (old_hold == 1)
        hold on
    endif

a minor problem, of course,

Joao

--
Joao Cardoso, INESC  |  e-mail:
R. Jose Falcao 110   |  tel:    + 351 2 2094345
4050 Porto, Portugal |  fax:    + 351 2 2008487




---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

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