i4 : code methods use
o4 = -- code for method: use(Monoid)
/usr/share/Macaulay2/Core/orderedmonoidrings.m2:13:17-13:46: --source code:
use Monoid := x -> ( if x.?use then x.use x; x)
---------------------------------
-- code for method: use(Package)
/usr/share/Macaulay2/Core/packages.m2:524:20-529:39: --source code:
use Package := pkg -> (
scan(pkg.Options.PackageExports, needsPackage);
loadedPackages = prepend(pkg, delete(pkg, loadedPackages));
dictionaryPath = prepend(pkg.Dictionary, delete(pkg.Dictionary, dictionaryPath));
checkShadow();
if pkg.?use then pkg.use pkg else pkg)
---------------------------------
-- code for method: use(Ring)
/usr/share/Macaulay2/Core/enginering.m2:352:15-357:6: --source code:
use Ring := R -> (
if R.?ring then use R.ring; -- I'm not sure what this is for. Which rings have this key?
generators R;
if R.?generators and R.?generatorSymbols then scan(R.generatorSymbols,R.generators,(sym,val) -> sym <- val);
if R.?use then R.use R;
R)
---------------------------------
-- code for method: use(Thing)
function identity: source code not available
|