Skip to content

Commit

Permalink
Update previousMethodsFound when running "methods HH"
Browse files Browse the repository at this point in the history
Otherwise, "code" won't work properly.
  • Loading branch information
d-torrance committed Nov 8, 2023
1 parent 55e85d5 commit 05e5e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion M2/Macaulay2/m2/code.m2
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ methods Sequence := F -> (
methods ScriptedFunctor := -- TODO: OO and other scripted functors aren't supported
methods Symbol :=
methods Thing := F -> (
if F === HH then return join(methods homology, methods cohomology);
if F === HH
then return previousMethodsFound = join \\ methods \ (homology, cohomology);
found := new MutableHashTable;
-- TODO: either finish or remove nullaryMethods
if nullaryMethods#?(1:F) then found#(1:F) = true;
Expand Down

0 comments on commit 05e5e37

Please sign in to comment.