octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47763] load: function handle to user function


From: Piotr Held
Subject: [Octave-bug-tracker] [bug #47763] load: function handle to user function uses full path, should just search load path
Date: Wed, 6 Sep 2017 22:12:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36

Follow-up Comment #9, bug #47763 (project octave):

I have created a patch for this problem. It is in file patch_bug47763.diff.

As I mentioned before some of the problem was connected to lazy function
handle evaluation. So I implemented it as well in this patch. Basically when
no function is found a octave_user_function is created with a new bool
property dummy_function. Calling octave_user_function::call() on this function
causes a lazy feval evaluation using the function name. I also added an
octave_value::is_dummy_function() query to tell if a certain function is a
dummy function.

I also added a new test folder with tests for the lazy function handle
evaluation. I did not add tests for this exact problem,  however I manually
tested the original sequence as well as a case where there is ambiguity (like
in comment Comment #6 <https://savannah.gnu.org/bugs/?47763#comment6>) and
everything worked for me.

(file #41750)
    _______________________________________________________

Additional Item Attachment:

File name: patch_bug47763.diff            Size:14 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47763>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]