[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64113] optimget should accept [] as first arg
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument |
Date: |
Wed, 26 Apr 2023 10:36:17 -0400 (EDT) |
Follow-up Comment #2, bug #64113 (project octave):
The doc has
----------
... [] is a valid OPTIONS argument.
VAL = optimget(OPTIONS,'NAME',DEFAULT) extracts the named parameter as
above, but returns DEFAULT if the named parameter is not specified (is
[])
in OPTIONS. For example
val = optimget(opts,'TolX',1e-4);
returns val = 1e-4 if the TolX parameter is not specified in opts.
----------
which sounds pretty clear to me. That is, optimget([],'TolX',1e-4) should
return 1e-4.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64113>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Muhali, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Pantxo Diribarne, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument,
Muhali <=
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, John W. Eaton, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Muhali, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Nicholas Jankowski, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Rik, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Rik, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Nicholas Jankowski, 2023/04/26
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Rik, 2023/04/27
- [Octave-bug-tracker] [bug #64113] optimget should accept [] as first argument, Nicholas Jankowski, 2023/04/27