Mercurial > octave
diff src/symtab.cc @ 8082:163d20e4d39c
symtab.cc (out_of_date_check_internal): check for method, then regular function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Sep 2008 11:20:25 -0400 |
parents | 85184151822e |
children | eb2beef9a9ff |
line wrap: on
line diff
--- a/src/symtab.cc Tue Sep 02 20:31:28 2008 -0400 +++ b/src/symtab.cc Wed Sep 03 11:20:25 2008 -0400 @@ -193,11 +193,12 @@ // because load_fcn_file looks at the name to // decide whether it came from a relative lookup. - if (dispatch_type.empty ()) - file = load_path::find_fcn (nm, dir_name); - else + if (! dispatch_type.empty ()) file = load_path::find_method (nm, dispatch_type, dir_name); + + if (file.empty ()) + file = load_path::find_fcn (nm, dir_name); } if (file.empty ())