[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: demo peculiarity
From: |
Paul Kienzle |
Subject: |
Re: demo peculiarity |
Date: |
Mon, 4 Jun 2007 18:49:04 -0400 |
On Jun 4, 2007, at 1:09 PM, Dmitri A. Sergatskov wrote:
I found some peculiar behavior for "demo". I am not sure if this is a
bug
or a feature.
... example of demo picking up the wrong function ...
Any comments?
I can't reproduce the problem on 2.1.71 OS X.
Here's the logic from test.m for finding the file containing the demo:
## locate the file to test
__file = file_in_loadpath (__name, "all");
if (isempty (__file))
__file = file_in_loadpath (strcat (__name, ".m"), "all");
endif
if (isempty (__file))
__file = file_in_loadpath (strcat (__name, ".cc"), "all");
endif
if (iscell (__file))
## If repeats, return first in path.
if (isempty (__file))
__file = "";
else
__file = __file{1};
endif
endif
Please try file_in_loadpath on your system to see if it is returning
the expected value.
- Paul
- demo peculiarity, Dmitri A. Sergatskov, 2007/06/04
- Re: demo peculiarity,
Paul Kienzle <=