search for: pkgb1

Displaying 1 result from an estimated 1 matches for "pkgb1".

Did you mean: pkg1
2014 Oct 31
2
Options that are local to the package that sets them
...package called pkgA. pkgA exposes an API that includes setting some options, e.g. pkgA works with color palettes, and the user of the package can define new palettes. pkgA provides an API to manipulate these palettes, including defining them. pkgA is intended to be used in other packages, e.g. in pkgB1 and pkgB2. Now suppose pkgB1 and pkgB2 both set new palettes using pkgA. They might set palettes with the same name, of course, they do not know about each other. My question is, is there a straightforward way to implement pkgA's API, such that pkgB1 and pkgB2 do not interfere? In other words,...