|
From: | Georg Wiora |
Subject: | [Octave-bug-tracker] [bug #50543] Loading of figures (and other objects) from Octave IDE |
Date: | Wed, 15 Mar 2017 06:37:05 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #3, bug #50543 (project octave): This solution would be preferable in my opinion. It would allow a free configuration for various file types. Therefore it would be nice if a central "openAny.m" octave function would be called that could be used to handle the file recognition. function result=openAny(filename) FileType = File_Type_Recognition_Function(filename) switch(FileType) case '.ofig': result=openOFIG(filename); case '.otherfiletype': result=openOTHERFILETYPE(filename); . . . otherwise: error('Filetype of "%s" can not be loaded!'); endswitch endfunction This kind of interface is limited to load functions returning a single argument. Therefore using varargout as for results may be more suitable. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?50543> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |