[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[octvae forge] shadowing between packages
From: |
JuanPi |
Subject: |
[octvae forge] shadowing between packages |
Date: |
Sun, 17 Mar 2019 01:28:55 +0100 |
Hi all,
I need to ask suggestion on how to solve the following situation:
1. Package A implementes funcA
2. Package B also implementa funcA, but is much better than A's funcA
3. Package B depends on Package A
Clearly Package A needs to run on itself, and if Package B is loaded
funcA is now pointing to B's funcA... this means functions from A
using funcA might fail (e.g. signature incompatibility)
What solutions do you have?
We have considered:
1. Renaming B's funcA to funcA_B ... not ideal, but well if that's it...
2. Creating a new package mirroring A, that renames funcA into funcA_A
... breaks all A's functions as does the shadowing, unless done
everywhere
3. Renaming functions of package A when package B is loaded, and
putting them back when package B is unloaded
2. is done via CVS, but as said is not actually a solution, unless one
renames everythig
3. We do not know actually how to do it! :D
Is 1. the only solution?
Thanks
--
JuanPi Carbajal
https://goo.gl/ayiJzi
-----
“An article about computational result is advertising, not
scholarship. The actual scholarship is the full software environment,
code and data, that produced the result.”
- Buckheit and Donoho
- [octvae forge] shadowing between packages,
JuanPi <=