i4 : code methods use
o4 = -- code for method: use(Ring)
../../../../../Macaulay2/m2/enginering.m2:384:12-389:7: --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(Monoid)
../../../../../Macaulay2/m2/monoids.m2:193:21-193:56: --source code:
use Monoid := M ->(if M.?use then M.use M; M)
------------------------------------------------------------------------
-- code for method: use(Package)
../../../../../Macaulay2/m2/packages.m2:561:15-566:42: --source code:
use Package := pkg -> (
scan(nonnull 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(Thing)
compiled function identity: source code not available
|