Mercurial > octave
changeset 20427:d5b877b86ed4
inputname.m: Rename BIST function foo to __foo__ to avoid name collisions.
* inputname.m: Rename BIST function foo to __foo__ to avoid name collisions.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 05 Aug 2015 22:47:41 -0700 |
parents | fe488ffe5f4b |
children | 7ac907da9fba |
files | scripts/miscellaneous/inputname.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/inputname.m Wed Aug 05 15:21:21 2015 -0400 +++ b/scripts/miscellaneous/inputname.m Wed Aug 05 22:47:41 2015 -0700 @@ -61,11 +61,11 @@ %!assert (inputname (1), "hello") %!assert (inputname (2), "worldly") -%!function r = foo (x, y) +%!function r = __foo__ (x, y) %! r = inputname (2); %!endfunction -%!assert (foo (pi, e), "e"); -%!assert (feval (@foo, pi, e), "e"); +%!assert (__foo__ (pi, e), "e"); +%!assert (feval (@__foo__, pi, e), "e"); %!error inputname () %!error inputname (1,2)