Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-376

Keyed list entry builder should cross-reference keys and their constituents

    XMLWordPrintable

Details

    • Improvement
    • Status: Confirmed
    • Lowest
    • Resolution: Unresolved
    • None
    • None
    • Binding codegen
    • None

    Description

      Given the simple model:

      list lst {
          key key;
          leaf key {
              type string;
          }
      }
      

      generated entry lifecycle is a bit weird, as it is possible to create a Lst which has a mis-matching key() and getKey(). This is because key() is a separate "property", as that allows sharing a single object across copies - but key constituents are not cross-referenced so that the key is reset when a conflicting leaf is stored.

      Design and implement an efficient way of cross-referencing the two, so that users do not get surprises.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: