|
From: | John W. Eaton |
Subject: | Re: Cannot "run" a function file in dev branch. |
Date: | Tue, 8 Aug 2017 19:56:02 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/08/2017 02:17 PM, Mike Miller wrote:
On Tue, Aug 08, 2017 at 11:00:10 -0700, siko1056 wrote:Rik and Mike you are right. The ´run´ command is documented for script files only, even for Matlab [1,2]. Since I worked with both I (miss)used it for calling setup scripts and functions (which are initially not on the load path), the latter without arguments. It was convenient and still works in Matlab R2017a (even though [2] says the opposite) and I noticed it by running my own test suite yesterday that "nothing" happened anymore. I don't think it's worth to be compatible to an undocumented Matlab (bug/feature?).Sorry if I wasn't clear, I do think it's worthwhile restoring this behavior even though it's undocumented.
I pushed a fix here: http://hg.savannah.gnu.org/hgweb/octave/rev/3cace95ce563When I made the earlier change, I forgot about the compatibility issue and was thinking that it only made sense to source scripts. I didn't notice any comments about it (so I added some in this changeset) and no tests failed after my changes (it would be nice to have some; would someone like to add a few?).
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |