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

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

[Octave-bug-tracker] [bug #33012] getappdata called before setappdata sh


From: anonymous
Subject: [Octave-bug-tracker] [bug #33012] getappdata called before setappdata should not fail
Date: Tue, 12 Apr 2011 15:02:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16

Follow-up Comment #5, bug #33012 (project octave):

The getappdata function should also allow ta call with a single argument,
returning the structure __appdata__ directly. So some code something like

if (nargin == 1 && ishandle (h))
  if (isfield (get (h), "__appdata__"))
    val = get(h, "__appdata__");
  else
    val = struct ();
  endif
endif
  
at the start of getappdata is needed

D.

PS: Sorry still posting anonymously due to my dev machine being out of service
(David Bateman)


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33012>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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