[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49751] Output of uicontrol
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #49751] Output of uicontrol |
Date: |
Fri, 2 Dec 2016 12:58:42 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49751>
Summary: Output of uicontrol
Project: GNU Octave
Submitted by: gyom
Submitted on: Fri 02 Dec 2016 12:58:41 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
This is a small suggestion to have uicontrol only return a handle when
explicitly requested, in alignment with Matlab's behavior.
I used the same mechanism as in uimenu but I wonder what is the recommended
way to proceed:
++
function varargout = fcn (varargin)
varargout = {};
H = ...
if (nargout > 0)
varargout = {H};
endif
endfunction
--
instead of:
++
function H = fcn (varargin)
tmp = ...
if (nargout > 0)
H = tmp;
endif
endfunction
--
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 02 Dec 2016 12:58:41 PM GMT Name: fix_uicontrol.diff Size: 480B
By: gyom
<http://savannah.gnu.org/bugs/download.php?file_id=39132>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49751>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49751] Output of uicontrol,
Guillaume <=