|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #46849] Shadowing warning on every command for function in +package directory |
Date: | Sun, 20 Dec 2020 07:24:35 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.66 |
Update of bug #46849 (project octave): Priority: 6 => 7 - High Status: Patch Submitted => Confirmed _______________________________________________________ Follow-up Comment #10: I didn't see the caching (but it is very well possible that I just didn't understand it). AFAICS, `load_path::update` effectively purges the load path and re-builds it from scratch. So IIUC, atm there is no way of detecting whether a particular function is new on the load path or whether it was already shadowing before. I don't know how the repeated shadowing warnings can be avoided. There is probably a better way of doing this. But that is probably outside the scope of this report. I tried some primitive changes to add the function name including the namespace to the map in load-path.cc. That helped to suppress the warning. But also made every function in a +namespace completely unusable. Since jwe is already planning on overhauling this part of the code, I'll leave this to him. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?46849> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |