octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

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