Allow OrderedList to be initialized with an existing NodeCache #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current code seems a bit odd in that:
node_cache
only hasaccessor
(read-only) ability, and only privatelySo it seems like there was meant to be some way to pass in an initial value, but this wasn't fully implemented? In any case, we need that ability in pumpkin, and this provides it.
This change has already been pushed to the
v11.0.0.rc8
branch of our fork, so that pumpkin pull request pumpkin pull request #186 can make use of it. This PR exists to facilitate review and discussion.Note that the code for current active-fedora still contains the same initialization pattern (nil guard, with no way to pass a value) for
@node_cache
. Even if we're violating intended use ofOrderedList
by using it in a nested fashion, I'm still scratching my head over this setup.