Mercurial > hg > octave-lyh
diff src/variables.cc @ 3476:78e1e0007f0f
[project @ 2000-01-26 00:05:43 by jwe]
author | jwe |
---|---|
date | Wed, 26 Jan 2000 00:05:45 +0000 |
parents | d25bc039237b |
children | b80bbb43a1a9 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -411,8 +411,8 @@ @deftypefn {Built-in Function} {} exist (@var{name})\n\ Return 1 if the name exists as a variable, 2 if the name (after\n\ appending @samp{.m}) is a function file in the path, 3 if the name is a\n\ -@samp{.oct} file in the path, or 5 if the name is a built-in function.\n\ -Otherwise, return 0.\n\ +@samp{.oct} file in the path, 5 if the name is a built-in function, or\n\ +6 is the name is a built-in constant. Otherwise, return 0.\n\ \n\ This function also returns 2 if a regular file called @var{name}\n\ exists in Octave's @code{LOADPATH}. If you want information about\n\ @@ -465,6 +465,10 @@ { retval = 5.0; } + else if (sr && sr->is_builtin_constant ()) + { + retval = 6.0; + } else if (sr && sr->is_user_function ()) { retval = 2.0;