[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37320] Documentation 'which' doesn't work on
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #37320] Documentation 'which' doesn't work on variables |
Date: |
Tue, 11 Feb 2014 11:51:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 |
Follow-up Comment #7, bug #37320 (project octave):
I have given a try to solve this issue, see attached patch.
In order to find if a symbol exist as a variable, we need to have access to
the caller variable scope. I rewrote which as a builtin DEFUN (__wich__ in
help.cc becomes which) so that the function is run in the caller scope.
I know that the policy is to have as much functions defined in .m files as
possible, but I couldn't find another way to have access to the callers
workspace (plus most part of the job is already done in __which__).
The patch is not complete as it makes the build process fail whith the
following error
...
Making all in scripts
...
make[2]: *** No rule to make target « help/which.m »
(file #30509)
_______________________________________________________
Additional Item Attachment:
File name: whichasbuitin_bug37320.patch Size:6 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37320>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37320] Documentation 'which' doesn't work on variables,
Pantxo Diribarne <=