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

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

[Octave-bug-tracker] [bug #66617] structfun assumes output arguments for


From: Fernando
Subject: [Octave-bug-tracker] [bug #66617] structfun assumes output arguments for invoked command
Date: Sat, 18 Jan 2025 05:06:28 -0500 (EST)

Follow-up Comment #19, bug #66617 (group octave):

I agree that your proposed change is clearer.

I think cellfun can only return an empty matrix when you assign the result to
a variable, e.g:

x=cellfun(@f,{})

sets x to [], while a sentence like

cellfun(@f,{})

does not set "ans" to anything. But it's probably better to stay safe.

Making structfun a built-in function would require more work, so maybe for the
moment we could take your solution and add BIST tests from file #56743.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66617>

_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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