Nested Sections not quite working #16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was starting to formalize some basic category theory using sections, and found a bug in the section mechanism.
Here's the relevant code:
The line in question is
inv A B f g. This does not type check, though it is supposed to. In order to get it to type check, I have to insertinv Obj Hom id comp A B f g. The problem is that, when exiting a nested section, definitions that depend on section variables from the outer section should not be removed from theSectionContext. This means thesaveStatefunction will need to be smarter at least.Solved by
fbfd889