bugGNU Octave - Bugs: bug #64988, request for support of named...

 
 

bug #64988: request for support of named parameters in function calls

Submitter:  None
Submitted:  Wed 06 Dec 2023 08:46:20 AM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Duplicate Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Dec 2023 05:41:12 PM UTC, comment #3: 
John W. Eaton <jwe>
Group administrator
Wed 06 Dec 2023 05:35:15 PM UTC, comment #2: 

Ah. Wait. Actually I was wrong. They work as assignments, rather than as named arguments. My bad.


octave:17> myfun(a=1, b=2)
ans = 5
octave:18> myfun(b=1, a=2)
ans = 5
octave:19> myfun(a=2, b=1)
ans = 4


Tasos Papastylianou <tpapastylianou>
Wed 06 Dec 2023 05:31:43 PM UTC, comment #1: 

Octave has default / named parameters already. E.g.


octave:1> function myfun( a=1, b=2 )
> a + 2* b
> end

octave:2> myfun(a=1, b=2)
ans = 5

octave:3> myfun(a=2, b=1)
ans = 4

octave:4> myfun()
ans = 5


Tasos Papastylianou <tpapastylianou>
Wed 06 Dec 2023 08:46:20 AM UTC, original submission:  

Octave very good for students.

Myself request to add named parameters for Octave function


1984

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by tpapastylianou (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-06 jwe Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupMatlab Compatibility Feature Request
        StatusNone Duplicate
        Open/ClosedOpen Closed
        Releaseother dev
        SummaryDear sir or madam request for support of named parameters in function calls

    Back to the top

    Powered by Savane 3.13-04b1.
    Corresponding source code